Content last modified Monday 6 March 2017
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
Article modified:
15 Jun 2015

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:

Commenting is closed for this article.

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
Published with Textpattern