none
[openafs-wiki.git] / TWiki / TWikiTemplates.mdwn
index f67a4a7..3119575 100644 (file)
@@ -195,7 +195,7 @@ Here is an example for creating new topics based on a specific template topic:
 
 <form action="http://www.dementia.org/twiki//edit/%WEB%/" name="new">
   <ul>
-    <li> New example topic: <input name="topic" size="23" type="text" value="ExampleTopic2010x06x29" /> <input name="templatetopic" type="hidden" value="ExampleTopicTemplate" /> <input type="submit" value="Create" /> (date format is YYYYxMMxDD) </li>
+    <li> New example topic: <input name="topic" size="23" type="text" value="ExampleTopic2010x06x29" /> <input name="templatetopic" type="hidden" value="ExampleTopicTemplate" /> <input name="topicparent" type="hidden" value="%TOPIC%" /> <input name="onlywikiname" type="hidden" value="on" /> <input type="submit" value="Create" /> (date format is YYYYxMMxDD) </li>
   </ul>
 </form>
 
@@ -205,12 +205,13 @@ The above form asks for a topic name. A hidden input tag named <code>**templatet
        * New example topic:
          <input type="text" name="topic" value="ExampleTopic%SERVERTIME{$yearx$mox$day}%" size="23" />
          <input type="hidden" name="templatetopic" value="ExampleTopicTemplate" />
+         <input type="hidden" name="topicparent" value="%TOPIC%" />
          <input type="hidden" name="onlywikiname" value="on" />
          <input type="submit" value="Create" />
          (date format is <nop>YYYYxMMxDD)
     </form>
 
-The <code>**onlywikiname**</code> parameter enforces [[WikiWords]] for topic names.
+The <code>**onlywikiname**</code> parameter enforces [[WikiWords]] for topic names. The <code>**topicparent**</code> parameter sets the topic parent to the topic where the form is located.
 
 %T% **TIP:** You can use the `%WIKIUSERNAME%` and `%DATE%` variables in your topic templates to include the signature of the person creating a new topic. The variables are expanded into fixed text when a new topic is created. The standard signature is: <br /><code>**-- %WIKIUSERNAME% - %DATE%**</code>