How to: Use CheckBox in ViewTemplate

12 views
Skip to first unread message

ocat

unread,
Mar 9, 2007, 5:54:27 AM3/9/07
to TiddlyWiki
I'm wondering if it is possible to use Eric Shulman's CheckboxPlugin
in ViewTemplate, since the syntax, [x(title:tag)], is totally
different from the template. I'd like to display the effect just like
Olivier Georgeon did in his interesting CognyWiki:

http://liris.cnrs.fr/~ogeorgeo/cognywiki.html

Please see the three checkboxes in the tiddler's subtitle area.

ocat

Eric Shulman

unread,
Mar 9, 2007, 10:14:14 AM3/9/07
to TiddlyWiki
> I'm wondering if it is possible to use Eric Shulman's CheckboxPlugin
> in ViewTemplate, since the syntax, [x(title:tag)], is totally

http://www.TiddlyTools.com/#CheckboxPlugin extends the TW wiki-
formatting syntax. Fortunately, you CAN put wiki-formatted content
into your ViewTemplate, just not by directly typing in into the
template. Instead, you can use the "tiddler" macro to 'transclude'
the content:

1) create a tiddler containing the desired content (e.g.,
"ShowCheckboxes")
2) include it in the ViewTemplate by using ...macro="tiddler
TiddlerName"...

ShowCheckboxes:
[x(tagA)] - [x(tagB)] - [x(tagC)]

ViewTemplate:
<span class='subtitle' macro='tiddler ShowCheckboxes'></span>

Note that CheckboxPlugin syntax for "TogglyTagging" uses the current
tiddler whenever you to omit the tiddler title and creates/deletes the
tag to correspond to the checked/unchecked state.

enjoy
-e
Eric Shulman
TiddlyTools / ELS Design Studios

ocat

unread,
Mar 9, 2007, 12:57:24 PM3/9/07
to TiddlyWiki
Wow, Eric, thanks. It works perfect.

ocat

On 3月9日, 下午11時14分, "Eric Shulman" <elsdes...@gmail.com> wrote:
> > I'm wondering if it is possible to use Eric Shulman's CheckboxPlugin
> > in ViewTemplate, since the syntax, [x(title:tag)], is totally
>

> http://www.TiddlyTools.com/#CheckboxPluginextends the TW wiki-

Simon Baird

unread,
Mar 11, 2007, 9:22:36 PM3/11/07
to Tiddl...@googlegroups.com

That example uses my ToggleTagPlugin:
http://mptw.tiddlyspot.com/#ToggleTagPlugin which is easier to use in ViewTemplate



--
Simon Baird <simon...@gmail.com>
Reply all
Reply to author
Forward
0 new messages