Hi Sean

Try this:

<$list filter="[tag[category]]" variable="listItem">
<$checkbox tag=<<listItem>>><$link to=<<listItem>>><$view
tiddler=<<listItem>> field="title"/></$link></$checkbox>
</$list>

By default, the list widget tracks the current item in the list in the
variable "currentTiddler" - in your original example, that overwrites the
currentTiddler that applies to the ViewTemplate. Here I'm specifying that
the list widget should use the variable "listItem". That leaves the current
tiddler intact for the checkbox widget to use. Then I use the variable
reference <<listItem>> to explicitly refer to the tag.

Does that make sense?

Best wishes

Jeremy





On Sun, Nov 10, 2013 at 2:10 AM, Sean <[email protected]> wrote:

> Hello,
>
> I'm trying to use the checkbox widget in ViewTemplate.  I have the
> following so far in a ViewTemplate tiddler:
>
> <$list filter="[tag[category]]">
> <$checkbox tag={{!!title}}><$link to={{!!title}}><$view
> field="title"/></$link></$checkbox>
> </$list>
>
> This shows a list of checkboxes for all tags tagged as category.  However,
> when I check the box, it tags the tag tiddler itself (i.e. it adds the tag
> "notes" to the "notes" tiddler.  How do I get it to tag the viewer tiddler?
>
> Thanks in advance for any help.
>
> - Sean
>
> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/tiddlywiki.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to