Tags:
create new tag
, view all tags
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

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatEXT edit   manage 9.0 K 2000-07-19 - 00:31 HaroldGottschalk My modified edit script
Unknown file formattmpl notext.tmpl   manage 1.2 K 2000-07-19 - 00:32 HaroldGottschalk My modified notext template
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2004-11-03 - RafaelAlvarez
 
  • 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.