Hey Guys
Apologies if this is a duplicate. This could be a simple answer but i have been looking at it for days and still not getting there.
I am using a macro i found on the web called tagfilter ($:/.tb/macros/tagfilter), just had another look and i can’t see where i got it from. Its pretty simple just pick a set of tags and then lookup the pages that match and display the list. I want to modify it so that it just returns the ones that have ALL of the tags picked rather than ANY.
I think the line in the macro that is doing the filter is this
<$list filter="[!is[system]sort[]]+[all[current]tags[]tagging:all[]]+[sort[]]-[all[current]]" template="$template$"/>
I think its the “tagging” part that is picking up pages with ANY of the tags… question is what do i replace it with?
This is the full macro incase i am misleading people on the line that is doing the filter
\define lingo-base() $:/language/EditTemplate/
\define tagfilter(filter:"[!is[system]sort[]]",state:"$:/temp/TagFilter", template:"$:/core/ui/ListItemTemplate")
<$set name=state value="$state$">
<$tiddler tiddler=<>>
<$set name=tags filter="[all[current]tags[]]">
<$set name=“addtags” filter="
$filter$
+[all[current]tags[]tagging:all[]]
-[all[current]]
+[tags[]]
-[all[current]tags[]]">
<$fieldmangler>
<$list filter="[all[current]tags[]sort[title]]" storyview=“pop”>
<<tag mode:“remove”>>
</$list>
<$reveal type=nomatch text="" default=<>>
<$reveal type=match text="" default=<>>
Filter by:
</$reveal>
<$button popup=<<qualify “$:/state/popup/tags-auto-complete”>> class=“tc-btn-invisible tc-btn-dropdown” tooltip={{$:/language/EditTemplate/Tags/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Tags/Dropdown/Caption}}>{{$:/core/images/new-button}}</$button>
</$reveal>
<$reveal type=match text="" default=<>>
Filter by:
<$button popup=<<qualify “$:/state/popup/tags-auto-complete”>> class=“tc-btn-invisible tc-btn-dropdown” tooltip={{$:/language/EditTemplate/Tags/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Tags/Dropdown/Caption}}>{{$:/core/images/new-button}}</$button>
</$reveal>
Thanks in advance - Pete