Improving the WebTopicList using the FilterPlugin

  • Tip Category - Developing Wiki Applications
  • Tip Added By - AndrewJones - 15 Aug 2009 - 22:42
  • Extensions Used - FilterPlugin
  • Useful To - Beginners
  • Tip Status - New
  • Related Topics -

Problem

The WebTopicList (linked to as Index in the side bar) lists all the topics as bullets, which is not very elegant. Using the FilterPlugin we can make it look more like a directory, making it much more useful.

Solution

Once you have the FilterPlugin installed, change the following line in System.WebTopicList from:

%TOPICLIST{"   * [[%BASEWEB%.$name][$name]]"}%

To:

%MAKEINDEX{"%TOPICLIST{"$name" separator=","}%" cols="3" header="$anchors" format="[[%BASEWEB%.$item][$item]]"}%

As all the other WebTopicList topics simply include the topic from the System, the changes are immediately applied to all the webs in your wiki.

Example

4 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z


If AddFilterPlugin goes through, it might be nice to have this as the default in Foswiki.

BestPracticeTipsForm edit

Category Developing Wiki Applications
Topic revision: r1 - 15 Aug 2009, AndrewJones
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy