I have the following template -
- <p><perch:content type="textarea" id="testimonial_quote" label="Testimonial Quote" help="Add a testimonial - testimonials will be displayed at random." required="true" editor="markitup"/></p>
- <p class="author"><perch:content type="text" id="testimonial_author" label="Testimonial Author" title="true"/></p>
I'm trying to populate it on my page with perch_content_custom as follows -
(below is how this .jade is compiled out in the normal .php file -)
gallery.php is where <?php perch_content('Testimonial'); ?> is displayed.
I'm not sure why nothing is appearing - the content shows fine on gallery.php but the array isn't pulling anything across.
What's confusing me even more is I have an old project that is JUST using perch_content_custom (the perch region doesn't exist anywhere else on the site) and pulling in from testimonials.html absolutely fine. I've checked and triple checked and nothing is different between the two set ups.
As above I've tried including the content in another page and pulling it across, as my understanding from the documentation is perch_content_custom alone can't generate a region (thus no idea how I got it working the way I wanted last time?!). Not sure what I'm doing wrong, ideally all I want is to pull in the entered testimonials at random and display within my global page include, but I can pull from a separate testimonials page if needed.