Output different global content block for each page?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
ITistic
Forum Members
Forum Members
Posts: 25
Joined: Tue Jun 27, 2006 9:28 pm

Output different global content block for each page?

Post by ITistic »

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.
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: Output different global content block for each page?

Post by Jos »

ITistic wrote:global content block for each individual web page
Then it wouldn't be global anymore, would it :D
Why not use {content block='testimonial'} in your page template.
ITistic
Forum Members
Forum Members
Posts: 25
Joined: Tue Jun 27, 2006 9:28 pm

Re: Output different global content block for each page?

Post by ITistic »

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?
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Output different global content block for each page?

Post by velden »

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.
Post Reply

Return to “CMSMS Core”