Page 1 of 1

Use Global Content Block from another CMS MS web site

Posted: Fri Sep 16, 2011 8:12 pm
by simon.romin
Hi guys

I currently have five web sites using CMS Made Simple - amazing software.

My question is this:

Can I use a Global Content Block from an external web site running CMS MS?

The reason is because all of my web sites have a consistent footer. I use a Global Content Block for my footer. But if I need to update the footer, then I need to update all five web sites individually. It would be easier if I could update just one and all the rest update too.

I hope this request makes sense. I look forward to your help. Many thanks

Simon

Re: Use Global Content Block from another CMS MS web site

Posted: Fri Sep 16, 2011 8:17 pm
by calguy1000
Simple:

In your master site:
a: create a new template with just {content}
b: create 5 new pages, in the content area just call each GCB.
- make sure the show-in-menu checkbox is unclicked. specify the
aliases to match the gcb names.

In your slave sites:
modify the template(s) replace the gcb call with something like:
{fetch file=http://mymastersite.com/index.php?page=gcb_name}

Bonus points:
a: Use one page in the master site and just specify the name of the GCB in a GET parameter.
b: use {cge_cache} (CGExtensions module) to cache the calls so that each request on a slave site does not result in a request to the master site.

Re: Use Global Content Block from another CMS MS web site

Posted: Fri Sep 16, 2011 10:28 pm
by simon.romin
Thanks Calguy, I'll give that a try.

Appreciate the quick response.