======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... ====== 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 [[http://www.w3.org/TR/html4/struct/objects.html#adef-alt|(X)HTML alt]] and [[http://www.w3.org/TR/html4/struct/global.html#adef-title|title]] attributes. Available values: __html__. Default is unset. =====align="value"===== [[http://www.w3.org/TR/html4/struct/objects.html#adef-align-IMG |(X)HTML align attribute]]. Default is unset. Recommended that you use CSS via __class__ or __id__ attribute instead. =====style="value"===== [[http://www.w3.org/TR/html4/present/styles.html#style-element |(X)HTML style attribute]]. Default is unset. Recommended that you use CSS via __class__ or __id__ attribute instead. =====class="class name"===== [[http://www.w3.org/TR/html4/struct/global.html#adef-class |(X)HTML class attribute]]. Default is unset. =====html_id="html id"===== [[http://www.w3.org/TR/html4/struct/global.html#adef-id |(X)HTML id attribute]]. Default is unset. =====wraptag="tag"===== [[http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.1 |(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" ===== ===== Use the article image's thumbnail as a permanent link to the article.===== Other tags used: <[[txp:permlink]]> ====== Genealogy ====== ===== Version 4.0.4 ===== * __class__, __escape__, __html_id__, __thumbnail__, and __wraptag__ added.