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 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.

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:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2008-08-02 - PeterThoeny
 
  • 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.