On Wednesday, February 3, 2021 at 10:06:05 AM UTC-8 mmiller wrote: > I am utilizing the reveal widget through a template (see below). This > template is being used by many tiddlers. > ...when I toggle the button for the reveal widget it is universally > toggling every tiddler utilizing the template. > <$reveal type="nomatch" state="$:/state/SampleReveal2" text="show"> > <$button set="$:/state/SampleReveal2" setTo="show" > class="NestRevealButton">View Goals > </$button> > </$reveal> > > <$reveal type="match" state="$:/state/SampleReveal2" text="show"> > <$button set="$:/state/SampleReveal2" setTo="hide" > class="NestRevealButton">Hide Goals</$button> > <$scrollable class='tc-scrollable-browse'> > <$list filter='[tag<currentTiddler>level[GOAL]sort[title]]'> > <$link><$view field='title'/></$link><br> <$view field='language'/> > <br> </$list> > </$scrollable> > </$reveal> >
You need to use the <<qualify>> macro to generate a unique state tiddler title for each reveal. *(see https://tiddlywiki.com/#qualify%20Macro)* Thus, instead of using "$:/state/SampleReveal2", you would use <<qualify "$:/state/SampleReveal2">>, like this: <$reveal type="nomatch" state=*<<qualify "$:/state/SampleReveal2">>* text="show"> <$button set=*<<qualify "$:/state/SampleReveal2">>* setTo="show" class="NestRevealButton">View Goals </$button> </$reveal> <$reveal type="match" state=*<<qualify "$:/state/SampleReveal2">>* text="show"> <$button set=*<<qualify "$:/state/SampleReveal2">>* setTo="hide" class="NestRevealButton">Hide Goals</$button> <$scrollable class='tc-scrollable-browse'> <$list filter='[tag<currentTiddler>level[GOAL]sort[title]]'> <$link><$view field='title'/></$link><br> <$view field='language'/> <br> </$list> </$scrollable> </$reveal> enjoy, -e -- 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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/393c5227-56e1-4c18-823c-bb09b0a7c457n%40googlegroups.com.