Texpattern context demo
Section | Image |
---|---|
context_demo | 22 |
Global image context
Note: this example has been updated to use image
instead of image_display
, which has been deprecated as of Txp 4.8.0.
Global image context is something of an oddity. There’s no built-in conditional tag to test for it (it is indicated by the p
query string parameter; don’t ask me why it’s called p
— I have no idea). It was added as a feature way back in Txp version 4.0.1, but has received little attention since. (The image_display
and image_index
tags, both of which are based on global image context, were deprecated in Txp version 4.8.0.) The image
tag, which is mainly used with local image context, is also sensitive to global image context.
This code:
<txp:image />
produces this output:

All images © Jeff Soo 2004–2025