Tags:
create new tag
view all tags

Question

Hello, I'd like to list the topics of the current web in its WebHome, but only those topics that are custom made.

I don't actually need the topics starting with Web...(except for WebPreferences, WebLeftBar) in my newly created webs, so I guess deleting them would do what I want...Is this a good idea?

I believe hiding them in the topic list would be better, so they are still there if needed. I don"t want to restrict access or anything, I'd just like to have a list where there's only the relevant information showing - and in this case that's only the newly created topics that don't come with the installation.

Is there some kind of variable I could use?

Regards, Anne

Environment

TWiki version: TWikiRelease04x02x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Windows XP SP2
Web server: Apache HTTP Server 2.2.4
Perl version: ActivePerl 5.8.8 build 820
Client OS: Windows XP SP2
Web Browser: IE6, Firefox2.x
Categories: Missing functionality

-- EichelhardtAnne - 25 Sep 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.

There is no built-in solution, but here is mine: List all the "system" topics in a variable in your Main.TWikiPreferences, e.g:

  • Set SYSTEMTOPICS = WebAtom,WebChanges,WebCreateNewTopic,WebIndex,WebLeftBar,WebNotify,WebPreferences,WebRss,WebSearch,WebSearchAdvanced,WebStatistics,WebTopicList
Note: I built the above as the list of all default topics in the data/_default web, except WebHome since it is typically modified by users to include actual contents. Adapt to your case.

Then, in your %SEARCH expressions, use the parameter excludetopic="%SYSTEMTOPICS%"

Variant: you may want to make the definition be:

  • Set SYSTEMTOPICS = %WEBSYSTEMTOPICS%,WebAtom,WebChanges,WebCreateNewTopic,WebIndex,WebLeftBar,WebNotify,WebPreferences,WebRss,WebSearch,WebSearchAdvanced,WebStatistics,WebTopicList
  • Set WEBSYSTEMTOPICS =
This way, you can add web-specific topics to the excluded list by defining WEBSYSTEMTOPICS locally in webs.

-- ColasNahaboo - 25 Sep 2008

That's a good trick!

Here are some more options: HowToEditWebTopicList

-- SeanCMorgan - 25 Sep 2008

Thank you, this works very well!

-- EichelhardtAnne - 26 Sep 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-09-26 - EichelhardtAnne
 
  • 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.