I use the list widget to pull together photos that are tagged identically 
into a photo gallery. I use the reveal widget to toggle between smaller 
thumbnail views and full views.

Basically, I use the small and large images as buttons to toggle the two 
different states of the reveal widget.

Simplified, this looks like this:

<$list filter="[tag[Photo]]">

<$reveal type="nomatch" state="xxx" text="show">
<$button set="xxx" setTo="show" class=tc-btn-invisible><$image 
source={{!!title}} width="300" /></$button>
</$reveal>

<$reveal type="match" state="xxx" text="show">
<$button set="xxx" setTo="hide" class=tc-btn-invisible><$image 
source={{!!title}} /></$button>
</$reveal>

</$list>

My problem: the state "xxx" is the same for all list items, thus toggling 
between views is only possible for the whole list, not for individual list 
items.

Is there a way of creating state tiddlers for individual list items? I 
tried the <<qualify>> macro since this seems to do exactly this, but I from 
the somewhat cryptical explanation in the official TW I do not really grasp 
how it works, and I cannot read the actual macro code. An easy solution 
would be to take the actual title field of each list item (since tiddler 
titles are unique) and append it with a suffix:

<$reveal type="nomatch" state="{{!!title}}+suffix" text="show">

But I do not know if this is possible.

Any ideas?

Thanks again for your help,
Michael

-- 
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/d/optout.

Reply via email to