Question
Is there a way I can edit the metadata directly? I would like to be able to change the comments on the images attached to a page without having to go through the action-->update properties cycle for every image. If I could just edit all the comments (via the metadata perhaps) and then save the page once, that would be great....is this possible?
Environment
--
TWikiGuest - 01 Sep 2004
Answer
There is a workaround if you are in the
TWikiAdminGroup of your site: Use the repRev command as described at the end of the TWiki.cfg file. Be careful not to misuse this command, e.g. edit the topic first to bump the version up under your name, then do the repRev.
Alternatively write some
cURL
glue to manipulate topic data via http protocol.
--
PeterThoeny - 03 Sep 2004
Here's a hack that I sometimes use. Note that it
is a hack and may do unexpected stuff to the raw TXT files. But it works for me:
- View the page in
raw mode. This includes metadata that you can copy.
- Edit the page and paste in the metadata. I can't remember if TWiki puts it first or last in the TXT file, but I think it's last. So paste it last and edit to your liking.
- Save. You're done.
--
TorbenGB - 03 Sep 2004
Well, both of those suggestions should do the trick. Not very elegant, but it'll work. It would great if this kind of functionality could be built into a plugin or something (I say this knowing nothing about what it involves). Thanks for the help.
--
TWikiGuest - 03 Sep 2004
Having hunted for this for a few minutes now, I thought it worth updating the location of the description: as of 4.1.2, it is now in the
lib/TWiki.spec
--
ScottClaridge - 18 Dec 2007
Is there any way of manually updating the TOPICPARENT meta data for a large number of topics (2000). I am converting from JSPWiki and I want to add some parent/child hierarchy to a lot of the files but I don't want to have to manually go to each topic and specify the parent topic. I've tried adding meta data to the topic.txt,v files which I manually create but that doesn't work. I've looked at the perl (I am a perl novice) code and I can tell when Twiki adds TOPICPARENT meta data it uses the session variables and arguments passed from the edit/save pages on TWiki. Is there anyway of mass updating the meta data without using the session so I can incorporate it into my current conversion program (which knows when converting each topic which parent it should belong to)?
--
DeanKnight - 26 Aug 2008
Nevermind, it took a fresh set of eyes to inform me that the meta data is stored at the begining of the .txt files and not in the .txt,v files. My original method should work now, i just have to write the meta data to the .txt file instead of the .txt'v.
--
DeanKnight - 26 Aug 2008