Forum
Filtering perch_content_custom() if content exists
Hi
Is there a way of filtering using perch_content_custom
to only display the results that have content within a perch:content
tag on another template?
I've got a perch_content_custom
region set up on the home page to show client testimonials taken from the main case study pages, but not all case studies include a testimonial so it's showing blank template if there is no content in the testimonials content field.
I've got <perch:if exists="QuoteShort">
in the template but it is still showing a blank testimonial rather than filtering them out completely.
I suppose what I'm trying to archive is a combination of perch_content_custom
and <perch:if exists="">
. Something like...
'filter' => 'QuoteShort',
'match' => 'contains some content',
'value' => 'true'
Many thanks
Glen
Page template...
Content template...
So simple!
Thanks Drew