PageLinks macro
This macro may be used to create a list of links to pages in the wiki. Pages may (or may not) exist for these links. A regular expression may be specified so that only links corresponding to a particular pattern are listed.
Usage
[[PageLinks]] - List all of the page links in a wiki.
[[PageLinks(regexp)]] - Lists only those links corresponding to a particular regular expression.
I use this to build menus of pages that I intend to write - alongside those that I have already written. More specifically I keep a list of academic papers. When I am editing my comments on a particular paper I want to categorise the paper into a particular field so I add a link of the form ["Topic: field"] to the paper.
I then have a page which lists all of the fields with the following on it:
[[PageLinks(Topic:.*)]]
This gives me a list of topics (which I may or may not have created a page for yet.)
Used in conjunction with the macro/LinkedFrom.py macro this is a powerful way of managing links.
Installation
Save this macro (MacroMarket/LinkedFrom.py) in your macros directory.
The Code
MacroMarket/PageLinks.py MacroMarket/PageLinks.py
Support area
If you have questions, problems, bug reports, wishes, comments - put them here: