9月
30

2007

Txp:article image

Classification-分类/类别

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.

article_image是一个独立标签,在文章发布的时候,Textpattern将会把html中的 img src 标签替换成相应id和url的标签。他包含在文章模块或者内容里面。图片和标签是放在内容菜单下的。调用的时候,可以使用图片的链接或者上传时候Textpattern系统给的id,非常简单:只需要把那个数字放在文章的image位置。

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).

这个标签用来设置是否开启图片的相册方式显示,有两个有效值:1(yes)和0(no)。默认的是0,不开启。

escape=“value”

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

设置图片的alt和title属性,默认的不设定。

align=“value”

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

设置图片的位置属性,默认是没设置的,你可以使用css的class或者id属性来替换这个。

style=“value”

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

设置style属性值,默认是没有设置的。你可以使用css的class和id来替换这个效果。

class=“class name”

(X)HTML class attribute. Default is unset.

html的class属性,默认是没有设置的。

html_id=“html id”

(X)HTML id attribute. Default is unset.

html的id属性,默认没有设置。

wraptag=“tag”

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

设置图片的边缘属性,默认是没有设置的。

本文评论功能已关闭。