Tags:
create new tag
, view all tags

Question

Hello,

im trying to exclude some topics from the TOPICLIST in WebCreateNewTopicTemplate.txt

TMPL:DEF{"topicparent"}%<select name="topicparent" size='10' class='twikiSelect'>%TOPICLIST{"<option $marker value='$name'>$name</option>" separator="$n" exclude="%MAKETEXT{"
WebAtom"|"WebChanges"}%"}%</select> %TMPL:END%

Any help would be appreciated.

Environment

TWiki version: TWikiRelease04x02x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RedHatEnt5
Web server: Apache 3.0.99-563
Perl version: 5.005, 5.6.1
Client OS:  
Web Browser: Firefox
Categories: Forms

-- DanSlank - 27 Oct 2008

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

You might try a FormattedSearch instead.

-- ArthurClemens - 27 Oct 2008

Great thx,

it works:

<select name="topicparent" size='10' class='twikiSelect'>%SEARCH{  "^[^Web]"  regex="on" scope="topic" nosearch="on" nototal="on" format="<option value='$topic'>$topic</option>"  }%</select>
-- DanSlank - 28 Oct 2008
 
Change status to:
Topic revision: r4 - 2008-10-28 - DanSlank
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.