Introduction 2 new macros SelectStoryMacro and StoryGlueMacro

112 views
Skip to first unread message

PMario

unread,
Dec 15, 2009, 8:35:06 AM12/15/09
to TiddlyWiki
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/2b356a28ff09e56a?hl=en

Eric Shulman

unread,
Dec 15, 2009, 11:20:05 AM12/15/09
to TiddlyWiki
> Introduction 2 new macros SelectStoryMacro and StoryGlueMacro
>
> 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.

see
http://www.TiddlyTools.com/#StorySaverPlugin
http://www.TiddlyTools.com/#StoryViewerPlugin

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
Message has been deleted

PMario

unread,
Dec 15, 2009, 1:38:08 PM12/15/09
to TiddlyWiki
Hi,

On Dec 15, 5:20 pm, Eric Shulman <elsdes...@gmail.com> wrote:
> see
>http://www.TiddlyTools.com/#StorySaverPlugin

I know StorySaverPlugin I use it with my presentation manager. I also
like breadcrumbs to generate stories.

>http://www.TiddlyTools.com/#StoryViewerPlugin

That's cool stuff and very well documented, too. May be I will
StoryGlue it two :)

Since one can use <<varDisplay
{{config.options.txtSelectStoryACTIVESTORY}} 'CSSclass'>> to get
Information which story is the active one, it can be displayed
everywhere and is not linked to the place where the macro lives.

StoryGlue displays a set of stories that contain the active tiddler,
if it is not part of the active story. StoryGlue usese
SelectStoryMacro to switch to the new story by user interaction.

SelectStory is not limited to switch between stories. It can be used
wherever you need a very minimalistic (and I think beautiful)
interface to load a value (cookie) with a tiddler title.

With this value you can do what ever you want: see
http://a-pm.tiddlyspot.com/#SelectStoryTest

regards Mario

Ken Girard

unread,
Dec 15, 2009, 1:53:44 PM12/15/09
to TiddlyWiki
I am sure you will not be all that suprised to learn that it is not
working in IE6.
On the PluginManager it shows: Error: Expected identifier, string or
number

Ken Girard

Eric Shulman

unread,
Dec 15, 2009, 2:08:14 PM12/15/09
to TiddlyWiki
> On the PluginManager it shows: Error: Expected identifier, string or
> number

This error is typically caused by a trailing comma following the last
element of an object declaration. For example:

config.macros.myMacro = {
handler: function(...)
{...},
someValue: "text",
someFlag: true,
}

Note the last comma (,)... Most javascript interpreters handle it just
fine... but IE complains because there is no identifier, string or
number following that comma.

The fix is trivial: remove the extra trailing comma.

enjoy,
-e

PMario

unread,
Dec 15, 2009, 6:41:45 PM12/15/09
to TiddlyWiki
Hi,
Thx for the info.
changed it.
-m

DaOza

unread,
Sep 17, 2014, 4:41:27 PM9/17/14
to tiddl...@googlegroups.com
Hi Mario,

Portlets plugin is amazing. Are you likely to get this going on TW5?

Ta,

Ajay

PMario

unread,
Sep 17, 2014, 8:24:48 PM9/17/14
to tiddl...@googlegroups.com
On Wednesday, September 17, 2014 10:41:27 PM UTC+2, DaOza wrote:
Portlets plugin is amazing. Are you likely to get this going on TW5?

I'd like to have some navigation elements like this. .. yes.
I was hoping to see some releases from David Johnston see the video link [1] ... but he didn't release any of his plugins. ... Which is really sad.

https://www.youtube.com/watch?feature=player_detailpage&v=DZiU4uSGFnQ#t=2663

-mario

DaOza

unread,
Sep 20, 2014, 5:09:42 PM9/20/14
to tiddl...@googlegroups.com
Thanks Mario,

Not just for navigation, but a way taking stock of a project and almost like using post-it notes on a wall, one can tackle a complex problem using this portlets approach.

A
Reply all
Reply to author
Forward
0 new messages