= 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. == Installation == This macro is installable using python's `easy_install` utility: {{{ easy_install http://trac-hacks.org/svn/listofwikipages/0.11 }}} There seem to be some issues with `easy_install` and Subversion 1.5 working directories which can be avoided using: {{{ svn export http://trac-hacks.org/svn/listofwikipages/0.11 listofwikipages easy_install listofwikipages rm -rf listofwikipages }}} People without Subversion installed can download the [download:listofwikipagesmacro/0.11 ZIP file], unpack it and run the following in the `0.11` directory: {{{ python setup.py install }}} To enable this macro put the below text into your `trac.ini` configuration file, which is located in the `config` directory of your Trac installation. You need to restart trac to reread the macro file and the 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
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 |