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 - 2008-08-02 - PeterThoeny
 
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.