Tags:
create new tag
view all tags

SID-00111: Render list of backlinks at the bottom of every topic

Status: Answered Answered TWiki version: 4.2.4 Perl version:
Category: CategoryMissingFunctionality Server OS: Last update: 17 years ago

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

      Change status to:
ALERT! 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.
SupportForm
Status Answered
Title Render list of backlinks at the bottom of every topic
SupportCategory CategoryMissingFunctionality
TWiki version 4.2.4
Server OS

Web server

Perl version

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2009-02-18 - MarcPhilipp
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.