FractalWiki

Context Variable / Context Levels

Difference (previous author) (Change, Edit, normal page display)

Changed: 9c9
You should be able to do so, be prepending the level to the context variable name, e. g. for TemplateFile?:
You are able to do so by prepending the level to the context variable name, e. g. for TemplateFile?:

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

Changed: 18c18
When we now go deeper, we should find this layout change only at a certail level:
When we now go through all levels, we should find this change active only at a certain levels:

Changed: 20,23c20,24
* /Level1 (original layout)
* /Level1/Level2 (changed layout)
* /Level1/Level2/Level3 (original layout)
* /Level1/Level2/Level3/Level4 (original layout)
* ContextVariable (changed layout, hit by level 0)
* /Level1 (original layout, level 1)
* /Level1/Level2 (changed layout, , hit by level 2)
* /Level1/Level2/Level3 (original layout, level 3)
* /Level1/Level2/Level3/Level4 (original layout, level 4)


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