Not sure if this is a bug or expected behaviour…
I have a situation where an entries tag is returning a set of results. Within that entries loop a {query} tag is filtering the output of the entries tag, returning a smaller number of results.
If I use {switch} within that query tag it’s still counting results that are excluded by the query.
i.e.
{exp:channel:entries channel="mychannel"}
{exp:query sql="[query]"}
{switch="||x"}
{/exp:query}
{/exp:channel:entries}If the results from the above *without the query tag* were:
One
Two
Three(x)
Four
Five
Six(x)
And let’s say the query tag eliminates “Three”, the desired result would be:
One
Two
Four(x)
Five
Six
However what you actually get is:
One
Two
Four
Five
Six(x)
Does that make any sense at all to anyone other than me? 😊
Cheers,
Steve.