My Test Page looks like this:
There are two inline references to the same tag in this journal entry:
When I write a simple query for the tag I don’t get all the blocks that are inheriting the tag1 reference from the page-tag, just a reference to Test Page:
{{query [[tag1]] }}
So I modified the query to look for page-tags or inline tags:
{{query (or [[tag1]] (page-tags [[tag1]]) )}}
But that fails like so:
That appears to be a bug, but I wasn’t able to find any reference to it.
I found a work around for the bug by wrapping the or clause in an and clause with a dummy argument that will always return true. This of course is not elegant, but it does bypass the bug and give the correct results by returning all the proper blocks:
{{query (and (or [[tag1]] (page-tags [[tag1]]) ) (not #blank) )}}
I don’t find it very intuitive that I have to specifically search for a tag as a page tag and an inline tag, but I can live with that. Though I’m sure it will be the source of many errors in the future.
Is the or clause issue with page-tags a known bug?
And most importantly is there a better way to do this?
Jay





