SID-00111: Render list of backlinks at the bottom of every topic
We plan to migrate our Wiki from an obsolete software to the TWiki. However, the old Wiki software was able to render a comma-separated list of topics referencing the current topic at the bottom of every page. Is this possible with TWiki? A search in plugins did not turn up any results. I know you can click on Backlinks in the bottom bar, but that is not as direct.
--
MarcPhilipp - 17 Feb 2009
Discussion and Answer
The list of backlinks is generated from a template (
/templates/backlinksweb.tmpl or
/templates/backlinksinallweb.tmpl, depending on which option you prefer). Copy that content into view.tmpl to get the behavior you want.
See
TWikiTemplates for more information.
--
SeanCMorgan - 17 Feb 2009
This search should work:
%SEARCH{
"(^|[\[\(\ ])%TOPIC%([^A-Za-z0-9]|$)"
type="regex" scope="text" nonoise="on"
excludetopic="%BASETOPIC%" web="%BASEWEB%"
format="[[$web.$topic][$topic]]" separator=", "
}%
You could also do a search across all webs with a
web="all" parameter. Please note that there will be a performance impact.
--
PeterThoeny - 17 Feb 2009
>
This search should work:
And it's simpler. You may still want to put it in a view template though, to get it to appear on every page.
--
SeanCMorgan - 18 Feb 2009
Thank you for your helpful replies. I will try it out as soon as possible.
--
MarcPhilipp - 18 Feb 2009
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.