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/9bdad3c0-1429-45e0-8fa8-71c803e94be5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to