Iterates through the change history of the page.

The "current page" always becomes the particular version of the page currently in iteration.


Usage#

<wiki:HistoryIterator id="<variable name>">

HTML or JSP
</wiki:>

Parameters#

id
Name of the variable to create.

Example#

<table>
    <wiki:HistoryIterator id="currentPage">
        <tr>
            <td>
                 <wiki:LinkTo version="<%=Integer.toString(currentPage.getVersion())%>">
                      <wiki:PageVersion/>
                 </wiki:LinkTo>
            </td>

            <td>
                 <wiki:PageDate/>
            </td>

            <td><wiki:Author /></td>
            <td><wiki:PageSize /></td>

            <wiki:PageType type="page">
                 <td>
                     <% if( currentPage.getVersion() > 1 ) { %>
                     <wiki:DiffLink version="<%=Integer.toString(currentPage.getVersion())%>" 
                                    newVersion="<%=Integer.toString(currentPage.getVersion()-1)%>">
                        from version <%=currentPage.getVersion()-1%> to <%=currentPage.getVersion()%>
                     </wiki:DiffLink>
                     <% } %>
                 </td>
             </wiki:PageType>
        </tr>
    </wiki:HistoryIterator>
</table>

Questions#

Q: How can a i display the page history blockwise. E.g. I would like to display only the first 50 versions an, if there are more a button with "Display next 50 versions!" gets visible. Heinz-Josef Lücking

A: Can't think of an easy way to do it... Could you please make an idea out of it and remove this? --JanneJalkanen


CategoryOfficialDocumentationCategoryOfficialDocumentation

CategoryOfficialDocumentationCat[CategoryOfficialDocumentation egoryOfficialDocumentation]CategoryOfficialDocumentation CategoryOfficialDocumentationCategoryOfficialDocumentation

Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
js
prototype.js 47.4 kB 1 01-Apr-2006 02:03 221.217.184.211
« This page (revision-7) was last changed on 01-Apr-2006 02:03 by 221.217.184.211