Table of Contents

txp:article_image

The article_image tag is a Single Tag. Textpattern will replace this tag with the IMG SRC html tag matching the numeric “ID” or URL assigned when the article is posted. Its context is in an article form or article content. The image to be associated with the tag is set under the content tab. Display advanced options and enter either the URL of the image, or the Textpattern ID (a number set by Textpattern at upload), Simply put: just the number, in the Article image field.

Syntax

The article_image tag has the following syntactic structure…

<txp:article_image />

Attributes

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

thumbnail="boolean"

Use thumbnail rather than full-size image. Available values: 1 (yes) or 0 (no). Default is 0 (no).

escape="value"

Escape (X)HTML entities for the image's (X)HTML alt and title attributes. Available values: html. Default is unset.

align="value"

(X)HTML align attribute. Default is unset. Recommended that you use CSS via class or id attribute instead.

style="value"

(X)HTML style attribute. Default is unset. Recommended that you use CSS via class or id attribute instead.

class="class name"

(X)HTML class attribute. Default is unset.

html_id="html id"

(X)HTML id attribute. Default is unset.

wraptag="tag"

(X)HTML tag (without brackets) to wrap around image. Default is unset.

Examples

Wrap article image in paragraph tag, and apply to it a CSS class named "article-image"

<txp:article_image wraptag="p" class="article-image" />

Use the article image's thumbnail as a permanent link to the article.

<txp:permlink><txp:article_image thumbnail="1" /></txp:permlink>

Other tags used: <permlink>

Genealogy

Version 4.0.4