Forum
perch:noresults not working?
I have this on my page:
perch_comments('testimonials', array( template => 'comments_home.html', filter => 'commentHomepage', match => 'eq', value => 'yes', 'sort-order' => DESC ));
and in the comments_home.html I have a <perch:noresults> tag. However, if there are no results, it is not shown. Am I doing something wrong?
DESC
needs to be quoted for a start.What is shown when there's no comments? Can you post your template and diagnostics report?
Absolutely nothing! Template:
Does perch_comments_count allow me to filter?
OK, so I found a way around this (don't know of it could be done in a tidier way but it works):