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 someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is 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:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2008-10-28 - DanSlank
 
  • 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.