List all Wiki Pages with Last Changed Data and Author or Last Changes By Author
Description
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.
Configuration
Put the following into your trac.ini configuration file:
[components] traclistofwikipages.* = enabled [listofwikipages] # 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 zipped source, check out using Subversion from here, or browse the source with Trac.
Examples
ListOfWikiPages
You can use the ListOfWikiPages macro like this:
[[ListOfWikiPages]]
which prints a table of all wiki pages, or with a list of wiki pages:
[[ListOfWikiPages(ThatWikiPage,ThisWikiPage,AnotherWikiPage)]]
this results in a table similar to this (example links not functional and no CSS styles on trac-hacks):
WikiPage | Last Changed at | By |
---|---|---|
SandBox | 09/11/08 01:45:38 (0 seconds ago) | martin |
SandBox2 | 09/11/08 00:26:39 (79 minutes ago) | martin |
SandBox3 | 09/11/08 01:13:19 (32 minutes ago) | martin |
SiteStyle | 08/11/08 22:14:02 (4 hours ago) | martin |
LastChangesBy
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
[5152] by martin_s on 01/23/09 07:59:07
- traclistofwikipages/macro.py
- Changed str() to unicode() to fix bug #4479.
[5112] by martin_s on 01/09/09 08:59:14
- macro.py
- Removed base_path from wiki URLs. This should fix bug #4252.
[4784] by martin_s on 11/13/08 09:26:13
- macro.py
- Fixed missing slash in wiki links.
[4781] by martin_s on 11/13/08 00:08:48
- macro.py
- Added macro LastChangesBy.
- style.css
- Updated style for second macro.
Author/Contributors
Author: martin_s
Contributors: