Forum
Perch related collection inside a block not showing content in dropdown
I followed an article here https://grabaperch.com/blog/archive/rapid-content-relationships-in-perch-runway which enabled me to get an option in my blocks to select a testimonial for output on a page. It works fine, apart from within the CMS where the select that should show the client name for selection, is just blank. I can select blank options that just appear as grey lines and it outputs on the site, but I've no idea how I can debug this?
Template
<perch:block type="testimonial" label="Testimonial">
<perch:related id="clientTestimonial" collection="testimonials" label="Select testimonial">
<perch:template path="content/testimonial_in_block.html" />
</perch:related>
</perch:block>
Do you have
title="true"
set on one of the fields in thetestimonials
collection?Hi Duncan,
No, I don't have that set anywhere. It seems very odd, this is the testimonial template itself:
You need a title if you want to use it in a relationship.
Hi Drew,
Ah ok, I didn't see that mentioned anywhere, must of missed it. That works, although I am having to go through each entry in the collection and hit save... is there a way to avoid having to do this?
In the future, yes, by making sure you've set up a title for each template.
For now, I'm not sure there is.