cross
New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
This question about Using an extension: Answered

Using makeindex to create an index of subwebs

I'm trying to use MAKEINDEX to make a index of subwebs. The point I'm stuck on is creating links to the pages within the subwebs. What I have so far is this:

%MAKEINDEX{"%SEARCH{"[A-Z]*" web="%BASEWEB%, %WEBLIST{separator=", " subwebs="%BASEWEB%"}%" scope="topic" type="regex" order="topic" nonoise="on"
   format="$web.$topic"  separator=", "}%" }%

Which creates a list. However since the names all start with the name of the web, the resulting index is useless. I tried fixing it by using a pattern and format on the MAKEINDEX:

%MAKEINDEX{"%SEARCH{"[A-Z]*" web="%BASEWEB%, %WEBLIST{separator=", " subwebs="%BASEWEB%"}%" scope="topic" type="regex" order="topic" nonoise="on"
   format="$web.$topic"  separator=", "}%" pattern="[A-Za-z/0-9]*\.([A-Za-z]*)" format="$item" }%

But now I only end up with the Topic Name without it's web.

Is there a way to do this with MAKEINDEX or some other way?


Its a bit odd, but try this:
format="$topic.$web"
and
pattern="^([^\.\/]*)\.(.*)" format="$2.$item"

-- OliverKrueger - 25 Jul 2009

QuestionForm edit

Subject Using an extension
Extension FilterPlugin
Version
Status Answered
Topic revision: r4 - 26 Jul 2009, OliverKrueger - This page was cached on 25 May 2018 - 00:58.

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