wiki:WikiLastModifiedPatch

Version 1 (modified by izzy, 5 years ago) (diff)

New hack WikiLastModifiedPatch, created by izzy

Automatically add a Last Modified line at the end of each wiki page

Description

By pasting this snipped at the right place of your site template, all your wiki pages will automatically have a "Last Modified" line added at the very end - without having it to activate manually on each page, as the LastModifiedMacro does. Of course this information will be appended to wiki pages only.

Bugs/Feature Requests

Existing bugs and feature requests for WikiLastModifiedPatch are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

You can check out WikiLastModifiedPatch from here using Subversion, or browse the source with Trac.

Example

    <!--! Wiki Footer (last_modified info) -->
    <div py:match="div[@id='content' and @class='wiki']" py:attrs="select('@*')">
      ${select('*')}
      <div class="lastmodified">Last modified by ${authorinfo(page.author)}, ${format_datetime(page.time)} (${dateinfo(page.time)} ago)</div>
    </div>

    ${select('*|text()')}

    <!--! Add site-specific footer -->
    <div id="sitefooter">
      <!--! Place your footer content here... -->
    </div>

Recent Changes

[5003] by izzy on 2008-12-12 10:52:44
New hack WikiLastModifiedPatch, created by izzy

Author/Contributors

Author: izzy
Contributors: