Version 2 (modified by izzy, 8 years ago) (diff)


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


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 the zipped source from [download:wikilastmodifiedpatch here].


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


This example shows how to add the "Last Modified" information to your site.html file (see also: I left the "site-specific footer" code from the original site template in here to make clear at what place the "last modified" code should go. Of course, you may chose a different text (e.g. localized to your language).

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


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

Some CSS definitions you may want to add to your style sheet:

div.lastmodified {
 font-size: 80%;
 text-align: center;

Recent Changes

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


Author: izzy