⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 attachmentsiteratortag.txt

📁 wiki建站资源 java编写的 很好用
💻 TXT
字号:
Iterates through the attachments of the current page.

The variable that is created is an instance of the Attachment class, which has the following methods:

* String getName() - Returns the fully-fledged WikiName of the attachment.
* String getFileName() - Returns the filename.
* long getSize() - Size of the attachment in bytes.
* String getParentName() - WikiName of the parent page.
* String getAuthor() - Name of the last author.
* int getVersion() - Current version.
* Date getLastModified() - Date of the latest modification.

The current page always becomes the attachment referred to by the variable.

----

!Usage

<wiki:AttachmentsIterator id="<variable name>">
;:''JSP code''
</wiki:AttachmentsIterator>

!Parameters

;__id__: Name of the iterator variable to create.

!Example
{{{
         <table width="90%">
         <wiki:AttachmentsIterator id="att">
             <tr>
             <td><wiki:LinkTo><%=att.getFileName()%></wiki:LinkTo></td>
             </tr>
         </wiki:AttachmentsIterator>
         </table>
}}}

Lists the attachments.  Note how the [LinkToTag] refers to the currently iterated attachment, so that if you have two attachments (Foobar1 & Foobar2), the list might show up something like this:
{{{
<table>
   <tr><td><a href="attach?page=Foobar1">Foobar1</a></td></tr>
   <tr><td><a href="attach?page=Foobar2">Foobar2</a></td></tr>
</table>
}}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -