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=<<state>>>
<$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=<<addtags>>>
<$reveal type=match text="" default=<<tags>>>
<span class="tc-subtitle">Filter by:</span>
</$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=<<tags>>>
<span class="tc-subtitle">Filter by:</span>
<$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>

<div class="tc-block-dropdown-wrapper">
<$reveal state=<<qualify "$:/state/popup/tags-auto-complete">> 
type="nomatch" text="" default="">
<div class="tc-block-dropdown">
<$edit-text tag="input" default="" placeholder="Filter tags" 
class="tc-edit-texteditor tc-popup-handle" focus="true"/>
<$linkcatcher set=<<state>> setTo="" message="tm-add-tag">
<$reveal type=match text="" default=<<tags>>>
<$list filter="$filter$ +[tags[]!is[system]search{$state$}sort[]]">
<<tag mode:link>>
</$list>
</$reveal>
<$reveal type=nomatch text="" default=<<tags>>>
<$list filter="
$filter$
+[all[current]tags[]tagging:all[]]
+[tags[]!is[system]search{$state$}sort[]]
-[all[current]tags[]]">
<<tag mode:link>>
</$list>
</$reveal>
</$linkcatcher>
</div>
</$reveal>
</div>
</$fieldmangler>
<$reveal type=match text="" default=<<tags>>>
<$list filter="$filter$" template="$template$"/>
</$reveal>
<$reveal type=nomatch text="" default=<<tags>>>
<$list filter="
$filter$
+[all[current]tags[]tagging:all[]]
+[sort[]]
-[all[current]]" template="$template$"/>
</$reveal>
</$set>
</$set>
</$tiddler>
</$set>
\end

Thanks in advance - Pete



-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d857413b-48a6-4cf5-845c-754e631a5ea2n%40googlegroups.com.

Reply via email to