You are here:
Foswiki
>
System Web
>
WebCreateNewTopicTemplate
E
dit
A
ttach
Tags:
create new tag
,
view all tags
%TMPL:INCLUDE{"view"}% %TMPL:DEF{"content"}%<div class="foswikiTopicText"> ---+ %MAKETEXT{"Create New Topic in [_1] Web" args="<nop>%BASEWEB%"}% %TMPL:P{"createform"}% </div>%TMPL:END% %{ do not show the following elements }% %TMPL:DEF{"topicaction"}%%TMPL:END% %TMPL:DEF{"topicinfo"}%%TMPL:END% %TMPL:DEF{"toolbar"}%%TMPL:END% %TMPL:DEF{"topicpathinfo"}%%TMPL:END% %TMPL:DEF{"breadcrumb"}%%TMPL:END% %TMPL:DEF{"top:toolbarbuttons"}%%TMPL:END% %TMPL:DEF{"createform"}%%TMPL:P{"formstartstep"}% %TMPL:P{"topicnamestep"}% %TMPL:P{"topicparentstep"}% %TMPL:P{"topictemplatestep"}% %TMPL:P{"submitstep"}% %TMPL:P{"formendstep"}%%TMPL:END% %TMPL:DEF{"formstartstep"}%%TMPL:P{"formstart"}%%TMPL:END% %TMPL:DEF{"formendstep"}%%TMPL:P{"formend"}%%TMPL:END% %{"nonwikiword" def already wraps its content in <p class='foswikiAllowNonWikiWord'>...</p>}% %TMPL:DEF{"topicnamestep"}%---+++ %MAKETEXT{"Topic name:"}% %TMPL:P{"topicname"}%%TMPL:P{"nonwikiword"}% %TMPL:END% %TMPL:DEF{"topicparentstep"}%---+++ %MAKETEXT{"Topic parent:"}% <p> %TMPL:P{"topicparent"}% </p>%TMPL:END% %TMPL:DEF{"topictemplatestep"}%---+++ %MAKETEXT{"Use template:"}% <p> %TMPL:P{"topictemplate"}% </p>%TMPL:END% %TMPL:DEF{"submitstep"}%<p> %TMPL:P{"submit"}% </p>%TMPL:END% %TMPL:DEF{"formstart"}%#NewTopic <form name="newtopicform" id="newtopicform" action="%SCRIPTURLPATH{manage}%/%BASEWEB%/" method="post"> <input type="hidden" name="action" value="create" /> <input type="hidden" name="onlynewtopic" value="on" />%TMPL:END% %TMPL:DEF{"topicname"}%<input type="text" class="foswikiInputField" name="topic" id="topic" size="40" value="%IF{"defined 'newtopic'" then="%URLPARAM{"newtopic"}%" else="$percentIF{$quot $ TOPIC='WebCreateNewTopic'$quot then=$quot$quot else=$quot%TOPIC%$quot}$percent"}%" />%TMPL:END% %TMPL:DEF{"topicparent"}%%IF{"defined pickparent" then="<select name='topicparent' size='10' class='foswikiSelect'>$percentTOPICLIST{$quot<option $marker value='$name'>$name</option>$quot marker=$quotselected=\$quotselected\$quot$quot separator=$quot$quot selection=$quot$percentURLPARAM{ $quottopicparent$quot default=$quot%MAKETEXT{"(no parent, orphaned topic)"}%$quot }$percent$quot}$percent<option value=$quot$quot>$percentMAKETEXT{$quot(no parent, orphaned topic)$quot}$percent</option></select>" else="<input type='text' size='40' name='topicparent' class='foswikiInputField' value='%URLPARAM{topicparent}%' /> <span class='foswikiUnvisited'><a id='pickparent' href='$percentSCRIPTURLPATH{view}$percent/$percentBASEWEB$percent/$percentBASETOPIC$percent?pickparent=1;$percentQUERYSTRING$percent;#NewTopic'>%MAKETEXT{"Pick from a list"}%</a></span>"}%%TMPL:END% %TMPL:DEF{"topictemplate"}%<select name="templatetopic" class="foswikiSelect">%IF{"'%URLPARAM{"templatetopic"}%'" then='<option selected="selected">%URLPARAM{"templatetopic"}%</option>'}%<option value="">%MAKETEXT{"Default template"}%</option>%SEARCH{"name~'*Template'" scope="topic" web="%BASEWEB%" excludetopic="*EditTemplate,*WebCreateNewTopicTemplate,*ViewTemplate" type="query" nonoise="on" format="<option value=\"$web.$topic\">$topic</option>"}%</select>%SEARCH{"name~'*Template'" scope="topic" web="%BASEWEB%" limit="1" excludetopic="WebTopicEditTemplate,*WebCreateNewTopicTemplate,*ViewTemplate" type="query" nonoise="on" format=" <span class='foswikiUnvisited'><a id='viewtemplates' href='%SCRIPTURL{view}%/%SYSTEMWEB%/WebTemplateTopics?web=%BASEWEB%'>%MAKETEXT{"View templates"}%</a></span>"}% %TMPL:END% %TMPL:DEF{"submit"}%<input id="submit" type="submit" class="foswikiSubmit" value='%MAKETEXT{"Create this topic"}%' />%TMPL:END% %TMPL:DEF{"formend"}%</form>%TMPL:END%
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Edit
w
iki text
|
M
ore topic actions
Topic revision: r1 - 12 Sep 2009,
ProjectContributor
System
Log In
or
Register
Toolbox
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
User Reference
BeginnersStartHere
TextFormattingRules
Macros
FormattedSearch
QuerySearch
DocumentGraphics
SkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
AdminToolsCategory
InterWikis
ManagingWebs
SiteTools
DefaultPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Webs
Applications
ClassificationApp
Extensions
Main
System
Copyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki?
Send feedback