Using the same content block on different pages.

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.
Locked
gavinhowells

Using the same content block on different pages.

Post by gavinhowells »

Hi everyone,

First off, sorry everyone, I'm almost certain that this has been covered numerous times before on the forum but for the life of me I can't find any reference to it when using the search.  :( Maybe it's because I'm not sure what I'm searching for.

Basically, I have a content block, {content block='xyz'}, on my home page. I would like the content contained in that block to also appear on a few other pages throughout the site. Is there anyway of doing this without having to put {content block='xyz'} on each of the pages and then entering the same content in the CMS on each of those pages?

Thanks Guys and Girls

Gavin

::edit - I do realise I could use global content blocks but would like to keep the content in the pages section of the CMS, just so as not to confuse anyone updating.
Last edited by gavinhowells on Mon Jul 07, 2008 10:17 am, edited 1 time in total.
cyberman

Re: Using the same content block on different pages.

Post by cyberman »

gavinhowells wrote: Is there anyway of doing this without having to put {content block='xyz'} on each of the pages and then entering the same content in the CMS on each of those pages?
Move the global content block to the template and assign this template to those pages ...
gavinhowells

Re: Using the same content block on different pages.

Post by gavinhowells »

Yes, I'd thought about using Global Content Blocks but wanted to keep all the content confined to the 'pages' section of the CMS.

I thought there was another way of doing it, perhaps using 'assign' but maybe I'm mistaken.
Pierre M.

Re: Using the same content block on different pages.

Post by Pierre M. »

Hello,

if your are not happy with cyberman's templating suggestion, may be you could be interested by calguy1000's CGextensions module ? It could have a function to call a block of any page...

Pierre M.
cyberman

Re: Using the same content block on different pages.

Post by cyberman »

Or maybe the ContentAlias module ...
gavinhowells

Re: Using the same content block on different pages.

Post by gavinhowells »

cyberman wrote: Or maybe the ContentAlias module ...
Gave that a try, but it tells me that the maximum CMSMS Version Supported = 1.2.4 and I'm running 1.3  :(

Thanks for all your help though guys, it looks like i will go the content block route.
alby

Re: Using the same content block on different pages.

Post by alby »

gavinhowells wrote:
cyberman wrote: Or maybe the ContentAlias module ...
Gave that a try, but it tells me that the maximum CMSMS Version Supported = 1.2.4 and I'm running 1.3  :(
From 1.3 there is Page Link Internal in Content Type

Alby
cyberman

Re: Using the same content block on different pages.

Post by cyberman »

gavinhowells wrote:
cyberman wrote: Or maybe the ContentAlias module ...
Gave that a try, but it tells me that the maximum CMSMS Version Supported = 1.2.4 and I'm running 1.3   
The limit is a sometimes to strong handled feature (in my opinion), but you can change the limit.

Open the file contentaliases.module.php with an editor, find line 70

Code: Select all

	function MaximumCMSVersion()
	{
	return '1.2.4';
	}
and change it to

Code: Select all

	function MaximumCMSVersion()
	{
	return '1.4';
	}
gavinhowells

Re: Using the same content block on different pages.

Post by gavinhowells »

Cheers guys. You've really been helpful.  :)
Locked

Return to “CMSMS Core”