Introduction 2 new macros SelectStoryMacro and StoryGlueMacro
I want to introduce 2 new macros which I made for using with
navigation and stories.
First: [1]SelectStoryMacro which can switch between different
tiddlers, that contain stories.
Second: StoryGlueMacro which makes NavigationMacro and
SelectStoryMacro work together. It searches all tiddlers tagged:
eg:"story". If a tiddler is displayed and belongs to the active story
NavigationMacro is activated.
If the tiddler belongs to an other tagged story, SelectStoryMacro is
activated with a list of valid stories. If you click the new story,
this story will be the active story now.
StoryGlueMacro should be included in the ViewTemplate.
SelectStoryMacro can be called everywhere. It needs a cookie name and
a list of tiddlers which contain stories. Since it can handle
different cookie names it can be used to swich between different sets
of stories. [3]
There are two additional small macros, that evaluate and render a
small script. They can be used in the MainMenu for displaying the
active presentation. A CSS class can be optionally used to use a
StyleSheet for configuration.
<<varDisplay {{your script here}} 'CSSclass'>>
<<varWikify {{your script here}} 'CSSclass'>>
You should also have a look at my experimental jQuery plugin jQSorter
[4] which nicely fits to this two macros. It is dicussed at [5]
Have fun.
Mario Pietsch
[1]
http://a-pm.tiddlyspot.com/#SelectStoryMacro
[2]
http://a-pm.tiddlyspot.com/#StoryGlueMacro
[3]
http://a-pm.tiddlyspot.com/#[[SelectStory%20Test]]
[4]
http://a-pm-experimental.tiddlyspot.com/
[5]
http://groups.google.com/group/tiddlywiki/browse_thread/thread/2b356a...
***********************************************************************
Please make any comments at:
http://groups.google.com/group/tiddlywiki/browse_thread/thread/7c641a77e8d134ac?hl=en