An interesting thing to observe is the fact that when you click the toolbar 
button - only the list of the tagged tiddler is executed - however the tag 
(<<currentTiddler>>) and also the custom field "kontaktgruppe" (also 
<<currentTiddler>>) will change depending on which tiddler you 
invoked/clicked the toolbar button...

Maybe this behaviour is useful in another context?

Cheers Måns Mårtensson

Den lørdag den 23. maj 2015 kl. 21.56.18 UTC+2 skrev Måns:
>
> Hi TwWizards
>
> I'm trying to hide a toolbar button from all tiddlers *not* tagged with: "
> vislisteknap" using the list filter widget.
> If no tiddlers are tagged with "vislisteknap" it *is* hidden - however if 
> I tag just one tiddler with "vislisteknap" the button i visible in all 
> tiddlers...
>
>
> http://playground.tiddlyspot.com/#ListOfTitles:ListOfTitles%20ExecuteListOfTitles
>
> Cheers Måns Mårtensson
>
> ExecuteListOfTitles 
> <http://playground.tiddlyspot.com/#ExecuteListOfTitles>:
>
> \define listButtonTags()
> [[$(currentTiddlerTag)$]] $(listButtonTags)$
> \end
> \define listButton()
> <$list filter="[tag[vislisteknap]]">
> <$button tooltip='make new tiddlers from list - ONLY lists!!' 
> class=<<tv-config-toolbar-class>>>
> <$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
> {{$:/core/images/new-button}}{{$:/core/images/new-button}}
> </$list>
> <$list filter={{!!text}}>
> <$action-setfield $tiddler={{!!title}} text="Kontaktgruppe: 
> [[$(currentTiddlerTag)$]]" tags="$(listButtonTags)$" 
> kontaktgruppe="$(currentTiddlerTag)$"/>
> </$list>
> </$button>
> </$list>
> \end
> <$set name="listButtonTags" value={{ExecuteListOfTitles!!tagtemplate}}>
> <$set name="currentTiddlerTag" value=<<currentTiddler>>>
> <<listButton>>
> </$set>
> </$set>
>
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/200e7e69-1cee-4ee9-9a8a-6f3817dfe596%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to