Output different global content block for each page?
Output different global content block for each page?
Is it possible for us to program the template to output a specific global content block for each individual web page? Our client would like to display a different testimonial blurb on each page of their site and I'm not sure how we can achieve this.
Re: Output different global content block for each page?
Then it wouldn't be global anymore, would itITistic wrote:global content block for each individual web page

Why not use {content block='testimonial'} in your page template.
Re: Output different global content block for each page?
The part of the page where we need to display testimonials is in the template, not the content area. That's why we can't simply embed it in the content area.
Is there any way to achieve this?
Is there any way to achieve this?
Re: Output different global content block for each page?
You know that it's possible to have multiple content blocks in one template?
So you need to have at least {content} for your main content. But you can have one or more extra {content block='pick-a-name'} in your template.
On the webpage those content block will - of course - be replaced by the content the user enters.
So you need to have at least {content} for your main content. But you can have one or more extra {content block='pick-a-name'} in your template.
On the webpage those content block will - of course - be replaced by the content the user enters.