Story Open Mechanism

6 views
Skip to first unread message

Michael.Tarnowski

unread,
Nov 23, 2008, 5:41:09 PM11/23/08
to TiddlyWiki
Hi folks,
Eric published a nice plugin StorySaverPlugin respective a nice script
SaveBreadcrumbs (http://tiddlytools.com/#StorySaverPlugin
%20SaveBreadcrumbs) to save your browse history in TW.
It would be even nicer to have a mechanism showing in an open tiddler
tagged "story" an open-button (by TaggedTemplateTweak,
http://tiddlytools.com/#TaggedTemplateTweak) to open a whole TW story.
Has anyone an idea who to solve this?

Cheers Michael

Eric Shulman

unread,
Nov 23, 2008, 8:42:03 PM11/23/08
to TiddlyWiki
> Eric published a nice plugin StorySaverPlugin respective a nice script
> SaveBreadcrumbs (http://tiddlytools.com/#StorySaverPlugin
> %20SaveBreadcrumbs) to save your browse history in TW.
> It would be even nicer to have a mechanism showing in an open tiddler
> tagged "story" an open-button (by TaggedTemplateTweak,http://tiddlytools.com/#TaggedTemplateTweak) to open a whole TW story.

http://www.TiddlyTools.com/#StorySaverPlugin
also defines an <<openStory>> macro:
<<openStory storyname label tooltip>>
which creates a *link* that will display all the tiddlers listed in a
given [[storyname]].

Then, as you rightly suggest, you can use
http://www.TiddlyTools.com/#TaggedTemplateTweak
to add this link as a toolbar command in a custom
[[StoryViewTemplate]], like this:
<div class='toolbar' macro='openStory storyname [[open story]]
[[open all links in this tiddler]]'></div>

The only catch is that the value of 'storyname' has got to be
automatically calculated, so that it always matches the name of the
current tiddler. Fortunately, there *is* a way to do this. First,
make sure you have
http://www.TiddlyTools.com/#CoreTweaks##444
installed. This tweak makes it possible to access the *current
tiddler title* and insert it into the macro, using a the TW macro
"computed parameter" syntax, like this:
<div class='toolbar' macro='openStory {{tiddler.title}} ...'></div>

The end result of combining these pieces is a toolbar command labeled
"open story" that will appear only for tiddlers tagged with "story"
and, when clicked, displays all the tiddlers that linked to from the
story tiddler. QED.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

Michael.Tarnowski

unread,
Nov 26, 2008, 8:42:28 AM11/26/08
to TiddlyWiki
Hi Eric,
thnxx for the knowledge transfer ;-)
It works fine!

Have a nice day
Michael
Reply all
Reply to author
Forward
0 new messages