Duplicate content blocks, is there a workaround to make this work? [solved]

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
laits
Forum Members
Forum Members
Posts: 50
Joined: Thu Sep 04, 2008 11:21 pm

Duplicate content blocks, is there a workaround to make this work? [solved]

Post by laits »

Hi all,

Ok, I have a bunch of Case study pages to put into a site, and the client wants to keep adding as they write more.

I have a quick reference down the right hand side of the page that is content already entered elsewhere,

So effectively wanted a content block to appear twice on the same page, meaning less duplicated input for the client - see http://195.8.196.20/~gss/index.php?page ... -aquadrome (still in construction)- You can see that I am using the Heading and sub heading in the hero, also down the right. They just have different styles attached.

I altered my template and it worked, that was until I went to alter the content and got the "duplicate content block" warning

Anyone have any suggestions for this, just trying to make cmsms - cmsmVs for my client!

Many Thanks

Rich
Last edited by laits on Thu Nov 25, 2010 10:08 pm, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Duplicate content blocks, is there a workaround to make this work?

Post by RonnyK »

You could do something like

{content block='Sidebar' assign='sidebar_content'}

and then just call the

$sidebar_content

where-ever you want it, so also multiple times.

Ronny
laits
Forum Members
Forum Members
Posts: 50
Joined: Thu Sep 04, 2008 11:21 pm

Re: Duplicate content blocks, is there a workaround to make this work?

Post by laits »

Ronny,

You're a star, works perfectly abeit not quite how I thought. The {content block='Sidebar' assign='sidebar_content'} doesn't actually display anything does it. but just sets up for the use of {$sidebar_content}.

Just for posterity, where is the correct place to place the {content block='Sidebar' assign='sidebar_content'} statement, or does it really not matter?

My brain is now working overtime at how many possibilities this method opens up - it's a little like PHP with Smarty.

Many thanks

Rich
Last edited by laits on Thu Nov 25, 2010 9:20 pm, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Duplicate content blocks, is there a workaround to make this work?

Post by RonnyK »

It doesnt matter where you set it, at that place it shows in the add/edit content, and indeed only goes into the variable.

So that makes you able to put the {$variable} to be placed at whatever, and as many times, as you want.

Ronny
Post Reply

Return to “CMSMS Core”