Tags:
tree1Add my vote for this tag create new tag
view all tags

Question

I have a topics page and I wanted to have it display the subtopics linked to the topic.

For example the topic page is titled "TestPage" and the subtopic page is titled "TestPageSubTopic1" etc...

I tried %TOPICLIST{"   * $web.$name"}%

I also tried %WEBLIST{"   * [[$name.WebHome]]"}%

These would display errors / display the page that I was currently on.

Is there some other command I can use to display these topics similar to WebTopicList? I wanted to have the same setup as WebTopicList since it eliminates the work of posting each link one by one & alphabetizing it.

Which uses: %INCLUDE{"%TWIKIWEB%.%TOPIC%"}%

Thank you for your time!

Sincerely, Brian Mahoney

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Missing functionality

-- BrianMahoney - 10 Jul 2007

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.

personally, I would (and do) use the TreePlugin, then just set the subtopics as 'children' to the main topic, and in the main topic add this: %TREE{excludetopic="Web*" formatting="outline" format="* [[$topic][$spacetopic]]" levelprefix="   " startlevel="1"}%

Oh, also, that will include the parent (I simply put that in every WebHome page... since WebHome isn't a parent and starts with Web, it's ignored and i get a nice listing. If you want just the children topic, and you want the list IN the parent topic, use %TREE{topic="%TOPIC%" formatting="outline" format="* [[$topic][$spacetopic]]" levelprefix="   " startlevel="1"}% instead

-- GrazianoMisuraca - 10 Jul 2007

Wow you are the best!!! Thank you so much!!!

-- BrianMahoney - 10 Jul 2007

Hahaha no problem smile

-- GrazianoMisuraca - 10 Jul 2007

Have you had any success implementing the TreeBrowserPlugin? Since I am going to have a lot of articles I was wondering if I could implement that feature tied in with your line of code you mentioned above.

Thanks again!

-- BrianMahoney - 10 Jul 2007

Naw, I never bothered trying, but a lot of peopel do, you shouldn't have trouble with it. I would get tree plugin working first, did you get that running?

-- GrazianoMisuraca - 10 Jul 2007

That worked great, I was unsure of how to insert the command you gave me into the tree browser plugin however. Thanks again for all the help! Manually inserting the links was dreadful! I tried the sample code for the tree browser plugin and that worked, however its options seem slightly different from the basic plugin. I'll try researching that option in the future.

-- BrianMahoney - 10 Jul 2007

Don't you just put %TREEBROWSERPLUGIN{}% directly infront?

-- GrazianoMisuraca - 11 Jul 2007

Change status to:
Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r9 - 2007-07-14 - 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.