Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease04x00x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Fedora Core 4
Web server: Apache/2.0.54
Perl version: v5.8.6
Client OS: Linux
Web Browser: Firefox
Categories: Platform

-- AndrewBYoung - 27 Mar 2006

Answer

ALERT! 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

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2007-07-18 - FranzJosefGigler
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.