• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

This provides the ability to select a template from any topic matching .*Template - should it go in?

--- WebTopicCreator.txt 2006-06-18 19:26:10.282422728 +0200
+++ NewWebTopicCreator.txt      2006-06-18 19:29:00.952476936 +0200
 -61,6 +61,13 @@
 <p class="twikiGrayText">%MAKETEXT{"It's usually best to choose a <a target='WikiWord' onclick=\"return launchWindow('[_1]','WikiWord')\" href='[_1]' rel='nofollow'>WikiWord</a> for the new topic name, otherwise automatic linking may not work. Characters not allowed in topic names, such as spaces will automatically be removed." args="%TWIKIWEB%,%SCRIPTURLPATH{"view"}%/%TWIKIWEB%/WikiWord"}%</p>
 <div class="twikiFormStep">
+---+++ %MAKETEXT{"Topic Template:"}%
+<select name="templatetopic" size="1" value="FooBarTemplate">
+<option value="%TWIKIWEB%.WebTopicEditTemplate">Default template</option>
+%SEARCH{".*Template$" scope="topic" regex="on" nonoise="on" format="<option>$topic</option>"}%
+<div class="twikiFormStep">
 ---+++ %MAKETEXT{"Topic parent:"}%
 <select name="topicparent" size="10">
 %TOPICLIST{"<option $marker value='$name'>$name</option>" separator=" " selection="%URLPARAM{ "parent" default="%MAKETEXT{"(no parent, orphaned topic)"}%" }%"}%
 -77,4 +84,4 @@
 <div class="twikiHelp">
 %ICON{info}% %MAKETEXT{"Once you have created the topic, consider adding links in related topics to the new topic so that there are more ways people can discover it."}%
\ No newline at end of file

Sure, once 4.0.3 is out of the door. AC
Added the code, with MAKETEXT texts.

Should the template selection also be offered on the "not found" page?

I've added a link "View templates" as well, pointing to a search results page of available templates in the web - similar to the proposal in TWiki:Codev/NewTopicTemplate.


4.1.0 released


Summary WebTopicCreator - adding ability to select a template from any topic matching .*Template
ReportedBy TWiki:Main.MartinCleaver

SVN Range Sun, 18 Jun 2006 build 10637
AppliesTo Engine

Priority Enhancement
CurrentState Closed

Checkins 11540 11541 11542 11738
TargetRelease minor
Edit | Attach | Watch | Print version | History: r14 < r13 < r12 < r11 < r10 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r14 - 2007-01-16 - KennethLavrsen
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback