Tags:
create new tag
, view all tags

Question

When creating a new topic, is there a way of reducing the "Topic Parent" list or defaulting this to one particular topic?

I've created a TWiki for use as a knowledge base, and when creating a new topic, the topic parent of new topics would usually be "KnowledgeBase", and also use the KnowledgeBaseTemplate.

The "KnowledgeBase" topic then lists all of the children of this topic.

The problem is when creating a new knowledge base topic, the "topic parent list" contains every topic in the web, and as the knowledge base grows, it's starting to look a bit messy.

Is this possible, or does anyone have any better ideas how I could go about achieving this?

May thanks,

James

Environment

TWiki version: TWikiRelease04x02x00
TWiki plugins: CommentPlugin, EditTablePlugin, InterwikiPlugin, PreferencePlugin , SlideShowPlugin, SmiliesPlugin , SpreadsheetPlugin , TablePlugin , TinyMCEPlugin , TwistyPlugin , WYSIWYGPlugin
Server OS: Windows Server 2003
Web server: Apache 2.2.9 (Win32)
Perl version: 5.008008 (MSWin32)
Client OS: Windows XP SP3
Web Browser: Internet Explorer 7.0
Categories: Missing functionality, Deployment

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

Can't you set the topicparent parameter to your customized save funtion?

-- FranzJosefGigler - 14 Sep 2008

Thanks for the advice Franz. How would I go about doing that though? - Sorry, i've not been using TWiki for that long though, and i'm still getting used to it!

-- JamesRJMorris - 14 Sep 2008

You should find all the infos you need at TWikiTemplates#Template_Topics_in_Action. Good luck! Tip: You can replace edit by save if you don't want the topic being opened in edit mode.

-- FranzJosefGigler - 15 Sep 2008

You can also use the BreadCrumbsPlugin to control the appearance of the list of topics to be displayed, i.e. by introducing an ellipsis for overlong breadcrumbs.

-- MichaelDaum - 15 Sep 2008

Thanks a lot Franz, that's achieved exactly what I wanted.

Created a custom form which asks the user the topic name, and when submitted passes through the required template and sets the topic parent as the current topic.

-- JamesRJMorris - 15 Sep 2008

Change status to:
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2008-09-15 - JamesRJMorris
 
  • 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-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.