LinkedFrom macro
The Problem
I want to know which pages this page is linked from.
Solution
- This macro provides a list of pages which this page is linked from, optionally filtered by a regular expression.
If you do not need regular expressinos you can just use [[FullSearch(linkto:PAGENAME)]] without installing a plugin.
Usage
[[LinkedFrom]] - List all the pages that statically link to the current page.
[[LinkedFrom(regexp)]] - Only lists the linking pages that match the regular expression.
I use it to keep a list of topic pages - such as ["Topic: UML"]. Each of these topics contains a [[LinkedFrom]] macro.
I then have a page for each paper which I have read. If the paper covers a particular topic I place a link to the topic on the page related to the paper. ["Topic: UML"] for example. The page then shows up automatically on the topic page.
Used in conjunction with the macro/PageLinks.py this offers a good way of managing links.
Installation
To work with Moin version 1.5, you will need to use the 1.3 version of the macro (MacroMarket/LinkedFrom-1.3.py). Save it in your data/plugin/macros directory, renamed as LinkedFrom.py.
For older versions of MoinMoin, you may need the oldev version of LinkedFrom macro (MacroMarket/LinkedFrom.py), saved to your data/plugin/macros directory.
The Code
MacroMarket/LinkedFrom-1.3.py MacroMarket/LinkedFrom-1.3.py
Support area
Have a look at the Macromarket to see if there is a solution already there!
If you have questions, problems, bug reports, wishes, comments - put them here:
The latest version of the macro (1.3) seems to work great with the latest version of Moin (1.5.4). So I cleaned out a bunch of very old comments that are probably rather irrelevant now. -- SteveDavison 2006-09-10 07:48:12