excluding a single result from a list filter

50 views
Skip to first unread message

Reece Shaw

unread,
Jan 25, 2019, 1:46:45 AM1/25/19
to TiddlyWiki
Hey all,

I'm working on some more worldbuilding oriented stuff and found that the ViewTemplate for tags is a useful piece of code to crib for a particular table I'm working on. I'd like to display the parent tag in my table to make it easily understood/accessible.

What I'd like is to exclude another tag that I have all these tiddlers tagged with so I'm only pulling tags relevant  to the info I need.

The reveal as written is:
<$reveal type="nomatch" stateTitle=<<folded-state>> text="hide" tag="div" retain="yes" animate="yes">
<div class="tc-tags-wrapper"><$list filter="[all[current]tags[]sort[title]]" template="$:/core/ui/TagTemplate" storyview="pop"/></div>
</$reveal>

but I would like to exclude the "Location" tag from getting pulled so it's just any of the other tags. I haven't found how to pull all except looking through the TW documentation.

Thanks,

-Reece


ancestry config table.png

TonyM

unread,
Jan 25, 2019, 2:08:37 AM1/25/19
to TiddlyWiki
Could you be looking for this?

<$list filter="[all[current]tags[]sort[title]] -[[Location]]" template="$:/core/ui/TagTemplate" storyview="pop"/>


Regards
Tony
Reply all
Reply to author
Forward
0 new messages