Tags:
create new tag
, view all tags

Hi,

I've started dabbling with twiki a little while ago and need some help with categorizing topics...

So far I've been creating topics via a template with something very simple that looks like this:

<form name="new" action="%SCRIPTURLPATH%/edit%SCRIPTSUFFIX%/%INTURLENCODE{"%WEB%"}%/">
     <input type="text" name="topic" value="something" size="23" />
     <input type="hidden" name="templatetopic" value="MyTemplateTopic" />
     <input type="hidden" name="topicparent" value="%TOPIC%" />
     <input type="hidden" name="onlywikiname" value="on" />
     <input type="hidden" name="onlynewtopic" value="on" />
     <input type="submit" value="Create" />
</form>

However, I'd like to add a functionality like what this site has (TopicClassification) to easily add categories to topics and make them search-friendly.

I've been trying to base myself off WebCreateNewTopic and BasicForm... here's the code:

<form name="new" action="%SCRIPTURLPATH%/edit%SCRIPTSUFFIX%/%INTURLENCODE{"%WEB%"}%/" method="get">
     <input type="text" name="topic" size="40" />
     %CALC{"$LISTJOIN( ,$LISTMAP(<label><input type='radio' name='TopicClassification' value='$item' $IF($EXACT($item,Select one...),checked='checked',)>$item</label>%BR%, %SEARCH{ "^ExampleForm$" scope="topic" type="regex" nosearch="on" nototal="on" format="$pattern(.*[|] TopicClassification[^|]+[|][^|]+[|][^|]+[|]([^|]+|)[|].*)" }%))"}%
     <input type="hidden" name="onlywikiname" value="on" />
     <input type="hidden" name="templatetopic" value="ExampleForm" />
     <input type="submit" value="Create New Topic" />
</form>

Although it displays fine, it's not keeping track of the TopicClassification when I create the new topic. It just creates the new topic using the "ExampleForm" template. If I omit the templatetopic input line, it creates a blank topic.

Is this a feature found only in twiki 4? I'm using the september 2004 build... if not, does anyone know what I'm missing? Sorry in advance if it's obvious; I'm still very new to Twiki. smile

Thanks, Behrouz

-- Contributors: BehrouzBayat

Discussion

-- BehrouzBayat - 20 Jun 2006

You should be asking questions in the Support web.

In any case, I believe you need to still provide a topic for 'templatetopic' and associate ExampleForm with the topic (if it is not enabled web-wide).

-- PankajPant - 20 Jun 2006

See TopicClassificationAddOn

-- JosMaccabiani - 21 Jun 2006

Thanks for the help guys. And sorry for posting this on the wrong web. smile

-- BehrouzBayat - 21 Jun 2006

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2006-06-21 - BehrouzBayat
 
  • 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-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.