Pure
FeatureBrainstorming, before I lose this idea...
An option list of page template types for newly created pages. Instead of just hitting ``create'' you can choose a page template.
If you decide to make a site-or-web specific set of styles for discussions or collaborative authoring or debate or...then you could make it very easy for the users to use the style without making them set it up on any given page (thus making it much more likely that they
would use the style.)
Any given web could have a default style, if the user just hits the ``create'' link that's what they get. So, for example, in the
Know web they would get the
tracking template automatically if they didn't choose something from the list.
--
KevinKinnell - 04 Jun 2000
I have made a small change to the edit script which allows this feature to be implemented. I did not implement this as a dropdown list, but with a series of links on the notext.tmpl file. The changes I made to edit allow you to implement your interface concept.
Diff of edit
> # Makes creating a new topic more flexible by allowing you to specify a template to use.
> my $theCreateTemplate = $query->param( 'create' ) || ""; # Added by HaroldGottschalk
>
>
186c190,197
< $text= &wiki::readTemplate( "notedited" );
---
> if(length($theCreateTemplate) == 0){ # Added by HaroldGottschalk
> # Default Template to use for new topic.
> $text= &wiki::readTemplate( "notedited" );
> }
> else{
> # Use Template specified by parm create
> $text= &wiki::readTemplate( $theCreateTemplate );
> } # End Add by HaroldGottschalk
Diff of notext.tmpl
6c6,11
< link at the bottom of this page.
---
> link at the bottom of this page to create a topic using the default template.
>
> <A href="/cgi-bin/edit/Codev/EditTemplateMenu?create=filefolder">
> <B>Create_FileFolder </B></A>
> <A href="/cgi-bin/edit/Codev/EditTemplateMenu?create=bookmarkfolder">
> <B>Create_BookmarkFolder</B></A>
I then added some new templates to the root template directory that corespond to the names passed in as values for the "create" parameter.
I hope you find this helpful.
--
HaroldGottschalk - 18 Jul 2000
Thanks Harold for sharing this! FYI,
PeterFokkinga already submitted
UniqueTopicTemplates that has a similar functionality. That extension has been commited to the TWiki core. We need to check if Harold's extension covers everything that
UniqueTopicTemplates does. What are the pluses/minuses of both extensions?
--
PeterThoeny - 20 Jul 2000