(8) | project | technical | examples | links | # | ||||||
project - summary - tutorial (2) (3) (4) (5) (6) (7) (8) (9) - usage (2) technical - reasoning - two passes - still tiny - sitemaps - variables - accessibility WAI SubSects examples - horizontal - vertical - tabbed (2) - multi section - printer style links - some hints - faq&issues - all features # - about me - our sitemap - download
(C) 2004-10-12 |
How to... use more automatic variablesWe did silently add an automatic variable into the title tag of our examples in earlier tutorial pages. However you should know that there are more flavours of variable expansion that that. First of all, the "?" variable are lowercased and special markup being removed. That is better for the title tag of course, so we use that flavour now. Other variables are intelligent to be "updating" variables, so you may add some text directly behind it and that text will be replaced. More flavours can be looked up in the section on variables but for our example we use the automatic "$today" variable. In the example we add it to the lower of the navigation bar with a leading "generated on" denotion.
Later we show that it is also possible to set the content of some meta variables so you are not limited to the builtin automatic variables like title or date. For example, you can add a <title> tag to the content source page which will override all automatics and just like with the standard html processing it will only be used to set the window title bar (it's not shown in the content area here).
|