Use a template to format all pages of a Web Man web.
Formatting a Web Man web site using a template
Procedure summary:
- Change the configuration file if necessary. That will load a new configuration, including the path to the template. The other configuration variables will be loaded into hidden form inputs. You can go to Web Options if you want to edit and save a new configuration.
- Change the template if necessary. The change will not be saved to any configuration file.
- Click on the "Apply Template" button.
- Have a browser tab open to the current Web Man web.
- Review the report in the gray area, and refresh the tab showing the current web.
- If the report and formatted web site look OK, click the "Rebuild Navigation" button, then the "Test Links" button.
What Web Man takes from the pages being formatted
- page titles and file names
- scripts
- key words and descriptions
- shared border requests, default and special
- base targets
- page content: frame sets or body, or content cell from a Front Page navigation table
What Web Man takes from the template
- document type
- style sheets
- shared borders
Bugs, issues and feature requests for this page
Does not supply requested autoborders unless <!-- requests --> are already present. Template has those; the requesting page should not have to supply them. The script does correctly strip out unwanted autoborders.
Using $Theme in applytemplate.cgi::file trimmer regex fails if alternate configuration file specified.
We'd like to be able format a web to a different web, keeping the original web.
DOCTYPE is followed immediately by <head>. There should be two newlines after the DOCTYPE. The DOCTYPE applicator knows how to do this. Also, this template applicator complains it can't find the DOCTYPE, even when it's present, spaced appropriately from the header, and successfully changed by the template.
Framesets not yet tested.
We'd like to have a way to format only part of a website. That way, different templates can be applied to different sections.
Perhaps navigation should be rebuilt automatically on formatting.
top