Question
Hello All,
I think I have a stupid problem, but I can't resolve it without your help.
I want to make a form to create a new Topic. In the form there are fields to submit the contents for the new topic (e.g. "title" for topic-title, "subtitle" for the subtitle of the new topic and a field called "content" for the content of the new topic).
First of all I tried to create a topic with a standart html form found here in the web (creates a topic called "ExampleNewTopicYYYYxMMxDD". That works good so I decided to add a new hidden field to my form called "content". At the template for my new topics I added an %.URLPARAM{"content"}% to display the entered data in the new topic. But than I saw that this var would not be replaced by its value in editing mode. And thats my problem!
I think there are two ways to resolve it:
a) I have to enable the expanding of this var (%.URLPARAM...) in editing mode or even better for me
b) skip the edit mode by creating a new topic via my form. Simply enter the data to my form, press the "create" button and now the new topic appears on the screen. That would be really nice.
Can anybody please help me? I've used the search function for the last two days (not the hole day

but I couldn't find something that helped me...
Anyway, sorry for my bad english, I hope you understand what I mean.
- TWiki version: 01 Dec 2001
- Perl version: 5.8.0
- Web server & version: That version recommend in Installation Guide
- Server OS: SuSE Linux 7.3
- Web browser & version: MS IE 5.x
- Client OS: Win2k
--
SvenZiegler - 26 Feb 2003
Answer
I'm not sure if this answers your question or not, but look at
BugReport in edit mode. Also see
PassFormVariableToTopicTemplate and
OwnTemplateWithEvaluatedVariables.
--
MattWilkie - 26 Feb 2003
Codev.ExpandUrlParamForNewTopics should solve your problem. Apply the patch or upgrade to
TWikiRelease01Feb2003.
--
PeterThoeny - 28 Feb 2003