How To create a WEBLIST of Webs Under a Hierarchy
--
Contributors: BrianFreeman
Discussion
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:
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
- This is a support question
- 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.
- 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...
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