> I've already passed author and title via XML, so it's easy to add the > rest from the php side, but how would I replace the tiddler on the > javascript side?
Well there's the "store" object which is where TiddlyWiki stores tiddlers: http://svn.tiddlywiki.org/Trunk/core/js/TiddlyWiki.js var t = store.createTiddler("foo"); t.text="bar"; Will blindly overwrite the store. The story: http://svn.tiddlywiki.org/Trunk/core/js/Story.js is how TiddlyWiki displays tiddlers. You probably want to consider refreshing the display to show changes, and not overwriting tiddlers open for edit. > Anyone know how I can find and then overwrite a > tiddler in the wiki? Sounds like might want to look at writing a TiddlyWiki "adaptor", which is how the backstage synchronises content with that on a remote server, there are adaptors to do this with MediaWiki, from RSS, Confluence, etc: http://svn.tiddlywiki.org/Trunk/contributors/MartinBudden/adaptors/ http://svn.tiddlywiki.org/Trunk/contributors/PaulDowney/plugins/SharedNotesPlugin/ > Some hints would probably be enough for me to > start experiment, if anyone has any :) Heh, suggest looking at other people's code, actually the best place to see a lot of TiddlyWiki plugins, and adaptation code, in particular the TiddlyWebWiki adaptor is on http://tiddlyspace.com -- Paul (psd) http://blog.whatfettle.com -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tiddlywikidev?hl=en.
