<txp:thumbnail /> single tag, 10 attributes

thumbnail

The thumbnail tag is a single tag that Textpattern will replace with the <img src=”…” /> HTML tag matching the thumbnail image of the numeric id assigned by Textpattern when the parent image was uploaded via the TXP Images tab.

Related: if_thumbnail

attributes

id="unset" (integer) 
  • Specifies the id assigned at upload of the image to display. Can be found on the Images tab. If both name and id are specified, name is used while id is ignored.
name="unset" 
  • Specifies which image thumbnail to display by its image name as shown on the Images tab.
escape="html" 
  • Escape HTML entities such as <, > and & for the image’s alt and title attributes.
  • Values: html or unset.
wraptag="unset" 
  • HTML tag to be used to wrap the img tag, specified without brackets.
class="unset" 
  • CSS class attribute to apply to the image (or to the wraptag, if set).
html_id="unset" 
  • The HTML id attribute assigned to the image (or to the wraptag, if set).
style="unset" 
  • Inline CSS style rule.
poplink="0" (boolean)
  • If set, the image will be rendered in a popup window.
link="0" (boolean) 
  • If set, the thumbnail will be rendered as a (non-javascript) URL link to the full-size image.
link_rel="unset" 
  • Value for the HTML rel attribute.

genealogy

Version 4.2.0

  • attribute align deprecated

Version 4.0.7

  • default value for attribute escape changed from unset to html

Version 4.0.6

  • link and link_rel added

Version 4.0.4

  • html_id, escape and wraptag added
<txp:thumbnail /> 1 examples

Display the given thumbnail

<txp:thumbnail id="23" /> 

What this does…
Displays the image thumbnail for the image uploaded as ID #23.