Question
I am using an external application to initially create a TWiki topic using a Template Topic page among other fields passed to the SAVE script. This works correctly.
I would then, at a later time, like to use the Twiki SAVE script to update the existing topic, also using the same Template Topic. When I try this, however, the new data sent via the form post (get – action: SAVE script) is ignored and the existing topic remains unchanged without the generation of an error.
Using the forcenewrevision parameter, a new revision number is created, but it is just a copy of the original.
What am I missing ??? I was unable to find any documentation related to this.
Environment
--
JeffLozier - 28 Jul 2008
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.
Try not to use the template in the save script when updating. Use the template only to create the topic. When updating just pass the field values.
--
EnriqueCadalso - 29 Jul 2008
Seems to be answered. Closing this question after more than 30 days of inactivity. Feel free to re-open if needed.
--
PeterThoeny - 02 Sep 2008
Hi, I am setting up a twiki for my organization.I have to create around 4500 topics from static txt files.is there a script that i can use, so i do not have to create these topics manually?
Any help will be appreciated.
--
ShikhaPathak - 17 Feb 2009
--
ShikhaPathak - 17 Feb 2009
Rename every text file to have a camel case filename. Insert something like this in the beginning of every text file (between
% signs)
META:TOPICINFO{author="ShikhaPathak" date="1234863457" format="1.1" version="1.1"}
And just copy the text files to the
.../twiki/data/YourWeb directory. After that check
file rights
--
EnriqueCadalso - 17 Feb 2009
Hi Enrique.Thanks a lot.It worked and saved lot of my efforts.
--
ShikhaPathak - 18 Feb 2009
You actually do not need the META:TOPICINFO, TWiki can live without it. And TWiki will create it for you the first time you use the browser to update a page.
--
PeterThoeny - 19 Feb 2009