Texpattern context demo
Section | Article |
---|---|
context_demo | 148 |
Local image context: The images tag
Local image context is the domain of the images
tag. As article
does with articles, images
retrieves a list of images, displaying each image by creating a local context for it and then parsing and displaying the designated form (or contents of the images
tag).
images
can be used to display images specified through any of various attributes — id
and so on. It can also be used in context mode, displaying images matching the global category or author context or the current article context (i.e., article images).
The image
tag displays a single image. It is sensitive to both local and global image context. (Used outside either context, it will trigger a Txp notice if the site is in Testing or Debugging mode.)
This code:
<txp:images id="49">
Behold, an image: <txp:image thumbnail="1" />
</txp:images>
produces this output:
Behold, an image:
All images © Jeff Soo 2004–2025