How can I show a ViewTemplate cnditionally?

59 views
Skip to first unread message

Devin Weaver

unread,
Jan 9, 2016, 8:56:29 PM1/9/16
to TiddlyWiki
I have a tiddler which is tagged $:/tags/ViewTemplate What this does is display the tiddler on every tiddler view.

What I was hoping would be to have that tiddler only visible on tiddlers which have a specific tag.

For example if I have a tiddler that shows a button to leave a comment and put it at the bottom of tiddler view that have the tag Article and not other tiddlers.

The reveal widget seems to only work with fields not on filters. Maybe a list widget? But if it one template tiddler a list seems wrong.

Any help appreciated. Thanks.

Tobias Beer

unread,
Jan 9, 2016, 9:16:10 PM1/9/16
to tiddl...@googlegroups.com
Hi Devin,
 
What I was hoping would be to have that tiddler only visible on tiddlers which have a specific tag.


Something along the lines of...

<$list filter="[all[current]tag[foo]]">
do something
</$list>

Best wishes,

Tobias.

Devin Weaver

unread,
Jan 10, 2016, 9:51:55 AM1/10/16
to TiddlyWiki
Perfect! That is exactly what I want! I just book marked that site, well done.
Reply all
Reply to author
Forward
0 new messages