Categories:
Author:
Current version:
0.2
About It:
Get it:
Rate it:
Flag it:
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.
Keywords/tags:
Initially released:
13 dec 2011Posted here:
12 Dec 2011Article modified:
13 Dec 2011









If there is a comment form at the Information URL, you may want to leave your comments/questions there or at the Forum thread for quicker feedback. Otherwise, comment away:
Subscribe to this article's comments RSS feed. [ ? ] View Recent Comments across the site.