[ xmlSE . how to . create a new browser ] edit
If you would like to have a different set of templates to accomodate different browsers, you can create a new browser. Go to the configure site page and follow the 'new' link next to the browsers heading.
Enter your name and password at the prompt.
The name of this browser version goes in the 'name' field and should have no spaces or special characters.
The 'user_agent' field is what determines which browser version is served to a viewer's browser. In the 'regexp' subfield, you can put a perl regular expression that matches the user-agent string of the browsers you want this version served to. If you want this browser version to be served to viewers whose browsers don't match any other browser version, put 'true' in the 'default' field.
In the 'header' and 'footer' fields, you can provide html that will be inserted in templates in this browser version when there is a '<header />' or '<footer />' tag. If you put a '<title />' tag in the header, and use the '<header title="my web page" />' format in the template, then the '<title />' tag will be replaced with '<title>my web page</title>'.
When you hit the 'create' button, a new template xml file will be created for the new browser version by copying the template file of the default version to a new file. You can then edit the templates or create new templates as necessary.
last updated 3.5.2002 by administrator