Version 8 (modified by martin_s, 7 years ago) (diff)

Update example table.

List all Wiki Pages with Last Changed Data and Author or Last Changes By Author


The macro ListOfWikiPages prints a table of all (user generated, i.e. non-trac-default) wiki pages with last changed date and author as requested in Request-a-Hack #2427.

The second macro provided by this package is LastChangesBy which prints the last changes made by the given user or the logged-in user if no username is given.


Put the following into your trac.ini configuration file:

traclistofwikipages.* = enabled

# Optional list of ignored users, defaults to 'trac' to ignore trac's default wiki pages:
#ignore_users = trac

Bugs/Feature Requests

Existing bugs and feature requests for ListOfWikiPagesMacro are here.

If you have any issues, create a new ticket.

Download and Source

Download the [download:listofwikipagesmacro zipped source], check out using Subversion from here, or browse the source with Trac.



You can use the ListOfWikiPages macro like this:


which prints a table of all wiki pages, or with a list of wiki pages:


this results in a table similar to this (example links not functional and no CSS styles on trac-hacks):

WikiPageLast Changed atByVersionDiffHistoryComment
SandBox10/24/09 12:21:21 (98 minutes ago)martin43DiffHistory
test10/24/09 05:22:14 (9 hours ago)martin3DiffHistory
TracLinks10/21/09 15:05:36 (3 days ago)martin4DiffHistoryReplaced "raw-attachment:" with "htdoc:dl/".


This macro prints a table similar to the one above only with the By column missing and the author name in the table head.

[[LastChangesBy(martin_s)]]        # the last 5 changes by user `martin_s`
[[LastChangesBy(martin_s,10)]]     # the last 10 changes by user `martin_s`

[[LastChangesBy]]          # or
[[LastChangesBy()]]                # the last 5 changes by the current user (i.e. every user sees it's own changes, if logged-on)
[[LastChangesBy(,12)]]             # the last 12 changes by the current user

Recent Changes

15550 by rjollos on 2016-05-15 08:01:40
0.4: Add encoding statement to source files

Patch by ntmlod.

Refs #7588, #12776.

15264 by rjollos on 2016-02-11 05:22:34
Remove unnecessary svn:mime-type on py files

svn:mime-type was set to "plain" for many files.

8549 by martin_s on 2010-08-30 23:57:45
Added encoding meta-comment and declared SVN keywords as unicode to avoid issues with non-english locales.


Author: martin_s