Tags:
create new tag
, view all tags

Question

I was intrigued by the ChangeRequest example in the Sandbox. I am new to all this stuff. Experimented with, and got a standard form working. But the ChangeRequest embedded the button in the page and used "hidden"stuff. You can see my ruminations in SandBox73.

It concludes with the following code:

<form name="new" action="%SCRIPTURLPATH%/edit%SCRIPTSUFFIX%/%WEB%/">
<input type="text" name="topic" value="SandBox4322" />
<input type="text" name="onlywikiname" value="on" />
<input type="text" name="templatetopic" value="ChangeRequestTemplate" />
<input type="text" name="TopicClassification" value="%TOPIC%" />
<input type="text" name="topicparent" value="%TOPIC%" />
<input type="text" name="number" value="4322"}%" />
<input type="submit" value=" Create new change request"/ >
</form>

It creates a button and some fields. When the button is pressed a the SandBox4322 page is created, with the ChangeRequestTemplate. But nothing happens with the TopicClassification, topicparent, number variables.

Which makes me wonder why they are there at all?

And a further question, What if I put arbitrary name value pairs in?

Then I started to look at documentation and could not find anything that was any helpfull. Look foreward to your reply....

-- BramVanOosterhout with a forgotten password. as -- TWikiGuest - 09 Jul 2003

Answer

  • name="topic" - Name of topic to create. Can be set in a text field, or is set programmatically (e.g. with a number)
  • name="onlywikiname" - If set, TWiki will complain if the topic name is not a WikiWord
  • name="templatetopic" - The name of the template topic, e.g. topic used to copy the initial content
  • name="TopicClassification" - Assuming the template topic has a form with a field called "TopicClassification", it will set the value of the field
  • name="topicparent" - Sets the parent topic
  • name="number" - Any parameter can passed to the new topic; if the template topic contains %URLPARAM{"number"}%, it will be replaced by its value

TWikiForms and TWikiTemplates should give you more details.

BTW, you can ResetPassword if you have forgotten it.

-- PeterThoeny - 12 Jul 2003

Thanks Peter, I completely missed the significance of %URLPARAM. It opens up another world of possibilities. OUTSTANDING!

Thanks for the response...

I will fix the password tomorrow, once I have access to an emailer.

-- BramVanOosterhout - 13 Jul 2003

Topic revision: r4 - 2003-07-13 - TWikiGuest
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.