Textpattern logo

Help?

image date

From Textbook

<txp:image_date />

The image_date tag is a single tag that Textpattern will replace with the uploaded date of the current (or given) image. Should usually be used in an image form, although it may be used on its own providing you specify an id or name.

Contents

Attributes

Tag will accept the following attributes (case-sensitive):

id="integer"
An id assigned at upload of an image to display. The IDs can be found on the Images tab.
Default: unset.
name="image name"
An image to display, given by its image name as shown on the Images tab. If both name and id are specified, the id takes precedence.
Default: unset.
format="format string"
Adjust the display of the date to taste.
Values: any valid strftime() string values.
Default: the Archive date format set in Basic Preferences.

Examples

Example 1: Display additional image information

<txp:image_list category="mammals">
   <a href="<txp:image_url />"><txp:thumbnail /></a>
   <div class="img_info">
      <txp:image_info type="caption, author" break=" by " />
      <txp:image_date format="%e %b %Y" />
   </div>
</txp:image_list>

Other tags used: image_list, image_url, image_info, thumbnail

Genealogy

Version 4.3.0

  • tag introduced

Translations [?]...

About Textbook