Question
I want to automatically attach an image to a topic when that topic is created via a form.
I can calculate the URL of the image I want to attach, but can't figure out how to automatically attach it.
Environment
--
HelenJohnstone - 28 May 2008
Answer
If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.
Maybe
DocumentCentricTopicCreation helps.
--
FranzJosefGigler - 28 May 2008
That sounds me a bit of a template topic (skeleton for topics). To use a topic as template set an html form with one textfield
(name of topic) and one hidden input to specify the template topic, example:
<form name="newTopic" action="%SCRIPTURLPATH%/edit/%WEB%/" method="get">
<input name="templatetopic" type="hidden" value="TheTemplateTopic" />
Topic Name: <input name="topic" type="text" size="40" />
<input name="subbutton" type="submit" value="Submit" />
</form>
In the template topic you may insert the image tag. Although that do not guarantee
a user won't will remove it from there when going to edit the topic.
You may like to place this form in a separate topic and include it on topics
you think it can stick conventionally.
For more info check for the related docs in TWiki:
TWikiScripts.
--
MarcoSilva - 28 May 2008
Look also at Plugins'TopicCreatePlugin's
%TOPICATTACH{}% feature.
--
PeterThoeny - 28 May 2008