soo_image user guide Page 13 of 16 « »
Txp Metadata tags
Display metadata fields from the Txp image table. These tags can be used anywhere, but require image context.
<txp:soo_image_alt /> <txp:soo_image_author /> <txp:soo_image_caption /> <txp:soo_image_category /> <txp:soo_image_date /> <txp:soo_image_height /> <txp:soo_image_id /> <txp:soo_image_name /> <txp:soo_image_url /> <txp:soo_image_width /> <txp:soo_thumbnail_url /> <txp:soo_thumbnail_height /> <txp:soo_thumbnail_width />
soo_image_date
returns the date stored by Txp, which is the image upload date, which is not all that useful. See soo_exif
for how to show the exposure date for images containing EXIF data.
soo_image_author
returns the author’s full name rather than the login name stored in the image table.
Note that thumbnail height and width are available only in Txp 4.2.0 or later. Also note that the Txp 4.2.0 update script does not update these fields for images already in the database (the soo_thumb_atts plugin offers a solution).
Attributes
All of these tags accept standard wraptag
, class
, and html_id
attributes.
Additionally, soo_image_alt
and soo_image_caption
each accept the following optional attribute:
escape
(boolean)
Set by default, HTML special characters will be converted. Set to “0” to leave the output unconverted.
soo_image_caption
accepts the following attribute:
no_widow
(boolean)
Set by default, will insert a non-breaking space between the last two words in the caption. Set to “0” to leave the output unconverted.
soo_image_date
accepts the following attribute:
format
(format string)
Set to a valid strftime() value to override the default date format set in site preferences.