Question
I am testing out TWiki and would like to enter the new topic name "SYN-DC-936" on the page
http://.../twiki/bin/view/.../WebTopicCreator?parent=IridiumSystems
, "Create New Topic in
PolarPower Web", "Topic name:", but after tabing out of the field the text is changed to "SYNDC".
I know this is not a typical
WikiWord, but I want to enter part numbers as
WikiWords. I have not found any documentation on adjusting the topic name, or
WikiWord systax. Is this possible?
Thanks!
Andrew Young
Environment
--
AndrewBYoung - 27 Mar 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SYN-DC-936 works, but I wouldn't recommend it, cause you somehow loose the Wikiness.
SYN-DC-936 would be much better. Use
TopicNameSyntax?raw=on to see the difference.
--
FranzJosefSilli - 27 Mar 2006
It seems the trick is to create the new topic within an existing topic's page, where one can use the [ [topic_name] [displayed_text] ] syntax, and then click to the newly made link and write out the topic. I tried to enter the [[][]] syntax in the "Topic name:" textbox from "Create new topic in..." function but the brackets were removed.
--
AndrewBYoung - 27 Mar 2006
I can well understand Andrew's desire. If TWiki users in a certain environment are accustomed to a particular syntax, they should be allowed to use it for topic names: I am allowing topic names like RFC2616 in my bibliography web because that's exactly how it is usually written.
The restriction we see here is hardcoded in the WebTopicCreator, TWiki itself does indeed allow creation of arbitrary topics. Just make up your own PartNumberCreator, somewhat like that:
<form action="%SCRIPTURLPATH{edit}%/%WEB%/">
<div>
Add a new part number:
<input name="templatetopic" type="hidden" value="PartNumberTemplate" />
<input name="topicparent" type="hidden" value="%TOPIC%" />
<input name="onlynewtopic" type="hidden" value="on" />
<input name="topic" type="text" value="PartNumberXXXXXXXXXX"/>
<input type="submit" class="twikiSubmit" value="Add" />
</div>
</form>
The important difference to the WebTopicCreator is that this form does
not have a hidden parameter
onlywikiname=on.
--
HaraldJoerg - 27 Mar 2006