Choosing your template set
[Link]Using the HeaderMatch document to display different template sets
You can display FirstClass templates in different ways, as discussed below from easiest to most complicated. We recommend that, where possible, you use the easier methods, as these have less chance for error.
Using the Internet Services default behavior to display templates
If you run a standard site setup, you will have four sets of templates in your Template Sets container. By default, Internet Services is hard coded to automatically display the template set located in the .templates container but uses all four template sets as a group (unless otherwise coded in the HeaderMatch document).
If you want to display a different web interface without changing the default template structure, use the .sitepref form (also see A note about the .sitepref form). If you run a standard site, this is the simplest way to choose a template set. You don't have to make any changes in your
site container or reconfigure the HeaderMatch document.
Caution
In this scenario, you cannot have a single template set in your site container and just set the .sitepref file to use it; it will not work.
Since users can choose to display a different set of templates for their personal Desktop (on the Viewing tab of their Preferences form) and override the .sitepref setting, in this configuration, you must maintain all four template sets in your site container. If you remove a template set and a user happens to choose it, he will get an error message and be unable to access his account.
Using the Create new Site rule to choose your templates
You can choose your web interface when you create a new web site using the Create new Site rule. This will place only the one set of templates you choose in your site container.
Using the .templates conference to display custom templates
If you want to preserve the default template setup (all template sets in your site container) but display different default templates, you can do so by replacing the contents in the .templates container.
There are two ways to do this:
• delete the templates inside the .templates container and replace them with the preferred templates
• create a new container inside the WWW/Template Sets container and place your custom templates inside.
Open the site container in which you want to replace the templates and delete the .templates alias. Re-alias the container you created in WWW/Template Sets into your site container and rename it .templates.
In either case, you don't have to reconfigure the HeaderMatch document. The default Internet Services behavior is to automatically display whatever is in the .templates container.
Using the HeaderMatch document to display different template sets
If you want to serve out a different set of templates using a container name other than .templates, or remove template containers from your site, you need to make changes to the HeaderMatch document.
Warning
You need to have a good understanding of the HeaderMatch document before you make any changes, as one small error could completely cripple your system.
Let's look at some example configurations.
Examples
If you want to
• remove all the template sets in your site container except for the .templates folder, you would add this line before the default template set selection code:
<sitename>: SET .templates = "<.templates>"
• remove all the template sets in your site container except for the mobile.templates folder, you would add this line before the default template set selection code:
<sitename>: SET .templates = "<mobile.templates>"
• remove all the template sets in your site container except for the simple.templates folder, you would add this line before the default template set selection code:
<sitename>: SET .templates = "<simple.templates>"
• create or install one set of templates in a container with a custom name (for example, my.templates) you would add this line before the default template set selection code:
<sitename>: SET .templates = "<my.templates>"
With any of these configurations, Internet Services will display only the desired template set.
|