Question
- TWiki version: Feb 2003
- Perl version: NA
- Web server & version: NA
- Server OS: NA
- Web browser & version: NA
- Client OS: NA
Hi all,
I would like to automatically display all the webs with a user definable name (ie
not the normal web name).
I tried to do this using a mixture of VAR and WEBLIST like this :
%WEBLIST{" * [[$name.WebHome][ $qname - %VAR{"WEBDISPLAYNAME", web=$qname}%]]"}%
After defining the variable WEBDISPLAYNAME in each
WebPreferences
But this gives the results below (I"ve replaced WEBDISPALYNAME with WEBBGCOLOR as that's defined here.
It looks lke the VAR is being evaluated before qname.
Any other ideas?
--
MartinFuzzey - 04 Apr 2003
Answer
You can use a
FormattedSearch with a pattern instead. Write this:
%SEARCH{ "^WebPreferences$" regex="on" scope="topic" web="all" nototal="on" nosearch="on" format=" * [[$web.WebHome][$web - $pattern(.*?\* Set WEBBGCOLOR\s*=\s*([^\s]*).*)]]" }%
To get this:
--
PeterThoeny - 06 Apr 2003