So when a working ditto call has no documents, we get "No documents Found" or something similar. Is there a way to display a chunk when there is no child documents present?
Thanks!
Ahh... figured it was that easy, just didn’t recall anything in the docs!
*slaps himself with RTFM!*
Thanks!
well this works well, but how can it work with pagination? is there a variable that can be passed to pagination to tell it not to display when there is no data?
Same question here
I want to show some filtered documents (say, news list for current document’s tags).
That’s what I have
<h3>Related news</h3>
[!Ditto...!]
But I don’t whant that "related news" heading when there’s no results. Actually, I don’t want anything to be shown in this case. I can set &noResults to some empty chunk, but how to get rid of this heading?
Can this be done without using &save and writing my own snippet to check if there’s a result set so I can add a heading?