FractalWiki

Context Variable / Context Levels

Difference (last change) (Author, normal page display)

Changed: 11,12c11,12
* [[blue]0.]<n>TemplateFile?={template buecher}?.txt</n>
* [[blue]2.]<n>TemplateFile?={template buecher}?.txt</n>
* [[orange]0.]<n>TemplateFile?={template buecher}?.txt</n>
* [[orange]2.]<n>TemplateFile?={template buecher}?.txt</n>


ContextVariables typically work for a branch (a page and its subpages) of a wiki.

Sometimes this is not what you want. You need to restrict the context you define to a certain level:

  • restrict context effect to the main page (use level 0)
  • restrict context effect to the direct subpages(use level 1)
  • ...
You are able to do so by prepending the level to the context variable name, e. g. for TemplateFile?:

  • 0.TemplateFile=template_buecher.txt
  • 2.TemplateFile=template_buecher.txt
Ok, lets define it that way in our

When we now go through all levels, we should find this change active only at a certain levels:

 
© the authors July 15, 2003