Tags:
create new tag
view all tags

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

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2003-04-06 - PeterThoeny
 
  • 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-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.