Question
I've been scouring the docco for a week and can't find a good answer to this one.
One of the things we're using TWiki for is project managment. As part of the project management documentation we have meeting minutes, agendas, and such. Each with a different layout.
We would like to be able to select a template when creating new pages so that the new page is partially filled in to a standard format. Now that's not hard if
every page is to have that same standard format, but we want to be able to select, at page creation time, what template to use.
There is the
NamespaceManagerAddOn which looks like it might do what we want, but I don't really understand the difference between plugins and addons and the installation looks like it needs to modify things that will get overwritten during the next upgrade so I'm a bit wary about installing it.
With Cairo we used to use a form that had data outside the form table in the form topic. That data was inserted into the page to be created doing pretty much what we want. The forms in Dakar though don't seem to do this.
Is the addon the only way to do this or is that an alternative?
Environment
--
CarlMakin - 09 Nov 2006
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.
How about creating the new page with a HTML form. Something like this (look at the raw text for the details):
--
RickMach - 18 Nov 2006
This functionality is built in the to be released "Create new topic" page for TWiki 4.1, and can be copied from
our development version
. It links to a new topic named
WebTemplateTopics
.
--
ArthurClemens - 18 Nov 2006
The thing you need to do is to change the
WebTopicCreator to fit your needs because it is responsible for the creating process.
You need to add this into the
WebTopicCreator-topic:
%STARTSECTION{"topictemplate"}%
<select name="templatetopic" size="5">%SEARCH{"TemplateNew" scope="topic" web="%WEB%, Main" format=" <option value=\"$web.$topic\">$topic</option>" }%</select>
%ENDSECTION{"topictemplate"}%
I named all my templates "TemplateNew*, so that they are automatically listed here.
--
MarijanaPrusina - 12 Dec 2006