We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You must opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
You are here: TWiki> Support Web>SearchAllNestedSubtopics (02 Aug 2008, PeterThoeny)
Tags:
create new tag
, view all tags

Question

This search provides a list of the children topics of the current topic in a very nice format:

%SEARCH{"\%META:TOPICPARENT\{name=\"%TOPIC%\"\}\%" type="regex" nosearch="on" header=""}% 

I would like to have all subtopics (children, grandchildren, great-grandchildren...etc.) in the same nice format. I would greatly appreciate any suggestion.

Thanks!

Environment

TWiki version: TWikiRelease04x00x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: VM
Web server: Apache
Perl version:  
Client OS:  
Web Browser:  
Categories: Search

-- MiloValenzuela - 16 Jun 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.

I messed around with a nested search for that (see HowToMakeIndentedIndex) before I realized that TreePlugin does it.

For performance it is recommended that a nested search only goes a few levels deep. But the plugin has no such limitation.

If you are using TreePlugin version 1.6, a code fix required. See my comments (03 Jun 2008) at TreePluginDev.

-- SeanCMorgan - 16 Jun 2008

Sean,

Thanks for your quick reply. I am aware of the TreePlugin? , however what I like of this SEARCH variable is the nice format that gives me the name of the topic, the revision, the latest update date and time, the author and even a snippet of the topic. I would like to use it to list all the subtopics in this format. Thanks.

-- MiloValenzuela - 17 Jun 2008

You can try nested searches, see example in the SearchPatternCookbook.

-- PeterThoeny - 02 Aug 2008

 
Change status to:
Topic revision: r4 - 02 Aug 2008 - 07:22:11 - PeterThoeny
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback