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
--
JamesRJMorris - 14 Sep 2008
Answer
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