> Is there a Javascript function that I can pass the name of a tiddler,
> which will then open that tiddler, like clicking on a wikified link?
story.displayTiddler(after,title,template)
where:
after = tiddler DOM element or null or "top" or "bottom"
the location in which the tiddler will be displayed
title = tiddler title
the name of the tiddler to be displayed
template = template title or NULL or DEFAULT_VIEW_TEMPLATE or
DEFAULT_EDIT_TEMPLATE
the name of the tiddler defining the template to be used when
rendering
Thus, the following will open SomeTiddler at the top of the story
column:
story.displayTiddler(null,'SomeTiddler')
To open a tiddler immediately following the current one (the usual TW
core behavior for a TiddlyLink), you can also *find the current
containing tiddler element* and pass it along, like this:
story.displayTiddler(story.findContainingTiddler(this),'SomeTiddler')
To open a tiddler for *editing* using a standard core TW editor, you
can write:
story.displayTiddler(null,'SomeTiddler',DEFAULT_EDIT_TEMPLATE)
To open a tiddler for viewing with a custom template:
story.displayTiddler(null,'SomeTiddler','SomeViewTemplate');
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios