a way to do the same thing that's a little prettier:

<<toc-selective-expandable 'GoodTag' !tag[BadTag]sort[title]>>



On Tuesday, 2 September 2014 22:01:43 UTC-3, Andreas Hahn wrote:
>
> Hi David,
>
> the toc macro does not actually accept a filter expression as its first 
> parameter, but instead just a tag that is then filled into a filter 
> expression. Within the toc-macro, the list widget is invoked with the 
> following filter exp:
>
> <$list filter="[tag[$tag$]$sort$]">
>
> $tag$ is the first parameter, so your 
>
> <<toc-selective-expandable '[tag[GettingStarted]!tag[$:/Note]]'>>
>
> leads to it being filled in like this:
>
> <$list filter="[tag[[tag[GettingStarted]!tag[$:/Note]]]]">
>
> And this is obviously not a well-formed filter expression. However this is 
> not the end of the line. To make
> your filter work, you can do a filter injection by doing
>
> <<toc-selective-expandable 'GettingStarted]!tag[$:/Note'>>
>
> so that it becomes
>
> <$list filter="[tag[GettingStarted]!tag[$:/Note]">
>
> which will work but doesn't make for good end-user experience whatsoever.
>
> /Andreas
>
>
> Am 03.09.2014 00:46, schrieb David Gifford:
>
> Why would both this:
>
> <div class='tc-table-of-contents'>
> <<toc-selective-expandable "[tag[GettingStarted]!tag[$:/Note]]">>
> </div>
>
> and this
>
> <div class='tc-table-of-contents'>
> <<toc-selective-expandable '[tag[GettingStarted]!tag[$:/Note]]'>>
> </div>
>
> result in this:
>
> Filter error: Syntax error in filter expression
>
> and how do I get it to work? (Make a TOC of all tiddlers that have the tag 
> GettingStarted but not the tag $:/Note)
>
> p.s. I realize the new CSS is tc-toc. I am using a stylesheet where I have 
> changed the old tc-table-of-contents to suit my tastes here.
> -- 
> 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+...@googlegroups.com <javascript:>.
> To post to this group, send email to tiddl...@googlegroups.com 
> <javascript:>.
> Visit this group at http://groups.google.com/group/tiddlywiki.
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3c36c766-de23-4102-afa7-cd3b53baa6ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to