create new tag
, view all tags

How To create a WEBLIST of Webs Under a Hierarchy

-- Contributors: BrianFreeman


I am using the hierarchy/subweb setup on a new TWiki server and would like to be able to generate a list of Webs under a parent web. So for example, if we have webs:

  • A
    • Aardvark
    • Apple
  • B
    • Boy
  • C

I could get a list back of "Aardvark Apple". This is going to be a fairly large TWiki site with many webs, so I would like to create a navigation bar similar to KoalaSkin but that is generated dynamically.

-- BrianFreeman - 06 Jul 2006

  1. This is a support question
  2. You don't want to use hierarchical webs. It turns out that they kill performance. Seriously kill performance. Even with smaller sites, much less big ones.
  3. You'll have to write a plugin to do it if you're still determined to. Depending on what happens, there will be a "SUBWEBS" tag in 4.1 that you'll be able to use.

-- MeredithLesly - 06 Jul 2006

The following code should be helpful maybe (requires SpreadsheetPlugin) :

*%MAKETEXT{"Subwebs"}% :*
%SEARCH{ "%HOMETOPIC%" scope="topic" web="all" topic="%HOMETOPIC%"  nosearch="on" nototal="on" format="$percntCALC{$IF($SEARCH(%WEB%/, $web)==1, $CHAR(32)$CHAR(32)$CHAR(32)* <a href=\"%SCRIPTURLPATH{"view"}%/$web/%HOMETOPIC%\">$web</a> , <nop>)}$percnt"}%

which gives this, here, for parent Web Codev :

Subwebs :

This should be empty, as there are no sub-webs here... wink

Hope this helps.

-- OlivierBerger - 06 Sep 2006

Have a look at the FlexWebListPlugin. I think it provides just the functionality you are looking for.

-- MichaelDaum - 06 Sep 2006

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2006-09-06 - MichaelDaum
  • 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-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.