Forum
Pulling content from a block within another page
Hi
I've created some Perch blocks for a client to be able to create their own testimonial pages – using text, image and quote blocks. I want to pull the content from one of these blocks on to the homepage to use as an excerpt.
I'm pulling in the testimonial's title and image but not sure of how to do the same for a block.
Is this possible?
Thank you!
Yes, include just that one block from the
<perch:blocks>
section in your template for the homepage - if the other blocks aren't there in the template they won't be output.It doesn't seem to be outputting anything. So, for instance if I have this in a template –
I should just be able to put this in a template for the homepage and it would pull in that block –
Or am I missing something?
It needs to be in the context of the block. So your homepage template would need to be: