Hi, Ben!
I tried the following:
I changed the path in BoorkmarkletPlugin to "http://mydomain.com/bags/
common/tiddlers/" and instead of "+spaceName+" I put "mybookmarks".
The line looked like this:
bookmarklet = "javascript:(function(a,b)
%7Ba=b.createElement('script');a.setAttribute('src','http://
mydomain.com/bags/common/tiddlers/bookmarker-
loader.js');b.body.appendChild(a);a.addEventListener('load',function()
%7BloadBookmarker('http://mydomain.com/bags/common/tiddlers/
bookmarker','mybookmarks');%7D,false);%7D(null,document))";
I also escaped the "var spaceName =
config.extensions.tiddlyspace.currentSpace.name;" line, because it was
throwing an error.
I also tried "path = path.replace(/^bags/, 'recipes').replace(/
common/, 'default');"
In bookmarker.js I changed the "tiddler.bag" line to tiddler.bag = new
tiddlyweb.Bag('common/');
Nothing worked.
Also, how do you assign content-type?
w
On Feb 27, 5:33 pm, Ben Gillies <[email protected]> wrote:
> On Tue, Feb 21, 2012 at 10:30 AM, whatever <[email protected]> wrote:
> > I checked it out and it's a great solution, if you have a tiddlyspace
> > account. But at work, we have a TiddlyWeb installation, and I'm trying
> > to consolidate all of our work-related bookmarks. If this could be
> > made into a (cross-)browser add-on, it would be awesome, especially if
> > it enabled adding to local tiddlywikis, ccTiddly installations and
> > TiddlyWeb installations. And of course TiddlySpace and TiddlySpot.
> > Unfortunately, my coding skills aren't anywhere near sufficient for
> > such an undertaking.
>
> 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/bookmarkerhttp://bookmarksplugin.tiddlyspace.com/bookmarker.jshttp://bookmarksplugin.tiddlyspace.com/bookmarker-loader.jshttp://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
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" 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/tiddlywiki?hl=en.