As the plugin is TiddlySpace, it should work on TiddlyWeb with only
minor modifications to it.
The tiddlers you'd want are:
http://bookmarksplugin.tiddlyspace.com/bookmarker
http://bookmarksplugin.tiddlyspace.com/bookmarker.js
http://bookmarksplugin.tiddlyspace.com/bookmarker-loader.js
http://bookmarksplugin.tiddlyspace.com/BookmarkletPlugin
You'll probably need to change a couple of bits to get it working in
vanilla TiddlyWeb:
* In BookmarksPlugin (which generates the bookmarklet, you'll need to
change the uris specified.
* In bookmarker.js you'll need to change the line:
tiddler.bag = new tiddlyweb.Bag(data.space + priv, '/');
to reflect the actual bag that you want to save to.
You'll also need to make sure you PUT the tiddlers into tiddlyweb with
the correct content-type. This means the bookmarker tiddler needs to
have a contant type of text/html, and the *.js tiddlers need a content
type of text/javascript.
Other than that, it should just work.
HTH
Ben
That looks right to me.
> I also tried "path = path.replace(/^bags/, 'recipes').replace(/
> common/, 'default');"
You don't need this. Manually specifying the path should be enough.
> In bookmarker.js I changed the "tiddler.bag" line to tiddler.bag = new
> tiddlyweb.Bag('common/');
Close. This should be:
tiddler.bag = new tiddlyweb.Bag('common', '/');
> Also, how do you assign content-type?
The easiest way is to set the server.content-type field on the tiddler
before saving it.
> --
> You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
> To post to this group, send email to tiddl...@googlegroups.com.
> To unsubscribe from this group, send email to tiddlywiki+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
>