ATTACH statement is used for reading attaches of current article. None statement can be nested in ATTACH statement.
1) In article template,ATTACH statement not nested by RS get the attachment list of current article.
2) In page template,ATTACH statement must be nested by RS statement.
3) ATTACH statement nested by RS get the list of attachment of nearest RS.
And if this RS is marked with "sql",ATTACH statement will be ignored.
4) Please add "att." prefix before tags.
<att type=(t:STRING) rows=(rows:int)>
--Input your template content here
</att>
| parameter | type | meaning |
|---|---|---|
| type | STRING | Optional. Indicate the type of attachment, expressed as attachment
suffix. Multiple types can be separated by “;”, space, “tab”, “,”
or “|” and is not case sensitive. If the type is not set, it means
all attachment will be taken. It equals type="*.*".
For example, ".jpg;.gif" means pictures matching jpg and gif format. ".jpg|.bmp|.gif" "*.jpg|.bmp|*.gif" ".jpg;.bmp;.gif" "jpg|bmp|gif" "jpg bmp gif" |
| rows | int | Optional. Means the number of attachment which will be taken. Not filling or <=0 means all attachment will be taken. When applying together with type, it means to take minimum amount of TYPE format attachment. |