= 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 [query:status!=closed&component=ListOfWikiPagesMacro&order=priority here]. If you have any issues, create a [/newticket?component=ListOfWikiPagesMacro&owner=martin_s new ticket]. == Download and Source == Download the [download:listofwikipagesmacro zipped source], check out [/svn/listofwikipagesmacro using Subversion from here], or [source:listofwikipagesmacro 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): {{{ #!html <table class="listofwikipages" style="border: thin solid; margin: 0.25ex; padding: 0.25ex;"><thead><tr><th style="font-weight: bold; border-bottom: thin solid; text-align: center;" class="wikipage">WikiPage</th><th style="font-weight: bold; border-bottom: thin solid; text-align: center;" class="lastchangedat">Last Changed at</th><th style="font-weight: bold; border-bottom: thin solid; text-align: center;" class="by">By</th><th style="font-weight: bold; border-bottom: thin solid; text-align: center;" class="version">Version</th><th style="font-weight: bold; border-bottom: thin solid; text-align: center;" class="diff">Diff</th><th style="font-weight: bold; border-bottom: thin solid; text-align: center;" class="history">History</th><th style="font-weight: bold; border-bottom: thin solid; text-align: center; text-align: left;" class="comment">Comment</th></tr></thead><tbody><tr class="even"><td><a href="/svn-multi/wiki/SandBox">SandBox</a></td><td><span>10/24/09 12:21:21</span><span> (<a href="/svn-multi/timeline?from=2009-10-24T12%253A21%253A21%252B0200&precision=seconds">98 minutes</a> ago)</span></td><td>martin</td><td style="text-align: center;" class="version"><a href="/svn-multi/wiki/SandBox?version=43">43</a></td><td><a href="/svn-multi/wiki/SandBox?action=diff&version=43">Diff</a></td><td><a href="/svn-multi/wiki/SandBox?action=history">History</a></td><td></td></tr><tr class="odd"><td><a href="/svn-multi/wiki/test">test</a></td><td><span>10/24/09 05:22:14</span><span> (<a href="/svn-multi/timeline?from=2009-10-24T05%253A22%253A14%252B0200&precision=seconds">9 hours</a> ago)</span></td><td>martin</td><td style="text-align: center;" class="version"><a href="/svn-multi/wiki/test?version=3">3</a></td><td><a href="/svn-multi/wiki/test?action=diff&version=3">Diff</a></td><td><a href="/svn-multi/wiki/test?action=history">History</a></td><td></td></tr><tr class="even"><td><a href="/svn-multi/wiki/TracLinks">TracLinks</a></td><td><span>10/21/09 15:05:36</span><span> (<a href="/svn-multi/timeline?from=2009-10-21T15%253A05%253A36%252B0200&precision=seconds">3 days</a> ago)</span></td><td>martin</td><td style="text-align: center;" class="version"><a href="/svn-multi/wiki/TracLinks?version=4">4</a></td><td><a href="/svn-multi/wiki/TracLinks?action=diff&version=4">Diff</a></td><td><a href="/svn-multi/wiki/TracLinks?action=history">History</a></td><td>Replaced "raw-attachment:" with "htdoc:dl/".</td></tr></tbody></table> }}} === !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 == [[ChangeLog(listofwikipagesmacro, 3)]] == Author/Contributors == '''Author:''' [wiki:martin_s] [[BR]] '''Contributors:'''
E-mail address and name can be saved in the Preferences.