Content last modified Tuesday 24 August 2021
hop to #bottom
Categories:
Author:
Current version:
0.3
About It:
Get it:
Rate it:
  • Helpful?
  • 2 Yes
  • 0 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

adi_globals

This is an easy way of getting hold of TXP global variables.

Just specify the variable you’re interested in & adi_globals will find it & return it’s value, e.g.

<txp:adi_globals name="page" />

will return the current Page template name from $pretext.

adi_globals automatically searches through $prefs, $pretext, $thisarticle, $thispage, thissection, $thiscomment, $thislink, $thisimage, $thiscategory & $thisfile@.

And, just for good measure, a TXP variable of the same name will be set as well.

Article Request Count:
Keywords/tags:
Initially released:
13 dec 2011
Posted here:
12 Dec 2011

You know you want to visit the Archives.
Published with Textpattern