wiki:BackLinksMacro

Version 12 (modified by rjollos, 4 years ago) (diff)

--

Add a list of referring pages to your page

Description

BackLinks 5.0 is a macro that can show you which wiki pages refer to the current page or to a page of your choice.

It is based on Andrew's and Muness's fixes (BackLinks.py, BackLinks.2.py, BackLinks.3.py, BackLinks.4.py).

It has these modifications:

  • UTF-8 support. Finally you can use wiki pages with accented letters and other symbols. The original version works only for wiki names written in 7-bit ASCII.
  • Bugfix: the original version works only with links like these:
    [wiki:link description of link]
    
    and not links like:
    [wiki:link]
    

Homepage/Blog/Contact

http://www.trapanator.com/blog/archives/category/trac

Bugs/Feature Requests

Existing bugs and feature requests for BackLinksMacro are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

You can check out BackLinksMacro from here using Subversion, or browse the source with Trac.

Example

  • show which wiki-pages refer to actual page:
    [[BackLinks]]
    
  • show which wiki-pages refer to page pagename:
    [[BackLinks(pagename)]]
    

Recent Changes

[13390] by rjollos on 2013-09-18 08:20:20
Generated href links were not correct in an environment with multiple projects. Fixes #5533.
[11969] by rjollos on 2012-09-11 07:08:25

Refs #5903, #9175, #9503:

  • Merged codebases for BackLinksMacro and BackLinksMenuMacro.
  • Modified SQL query to utilize Trac's database agnostic API. Possible matches are captured with a LIKE clause, and then filtered with a regex in the Python code.
[11968] by rjollos on 2012-09-11 00:57:28

Fixes #3773 (7.0dev)

  • Macro is now packaged for installation as an egg. Thanks to rekkanoryo@rekkanoryo.org for the initial patch.
  • Removed some unused imports.
  • Minor refactoring of the macro.

Author/Contributors

Author: Trapanator
Maintainer: Trapanator
Contributors: