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><!--/twikiFormStep-->
<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>"}%
+</select>
+</div><!--/twikiFormStep-->
+<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 @@
%BR%
<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."}%
-</div>
\ No newline at end of file
+</div>
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
.
AC
4.1.0 released
KJL