|
|||
|
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:
The current page always becomes the attachment referred to by the variable.
Usage<wiki:AttachmentsIterator id="<variable name>">
Parameters
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>
|
This material is based upon work supported by the National Science Foundation under award 0225676. Any opinions, findings and conclusions or recomendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation (NSF). Copyright 2004 Partnership for Biodiversity Informatics, University of New Mexico, The Regents of the University of California, and University of Kansas |