External access to CMSMS global content

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
tomkrysl
New Member
New Member
Posts: 5
Joined: Fri Nov 20, 2015 11:33 am

External access to CMSMS global content

Post by tomkrysl »

Hi,
I use CMSMS for the main site and different system for support site. I want to show page header and footer from main site in this support site. These are defined in CMSMS as global_content. Can I access this global content from the support system page generator script? The support system is written in PHP as well.

Thank you very much!
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: External access to CMSMS global content

Post by calguy1000 »

Accessing CMSMS API's from external scripts is not supported.

You can however setup a separate content page or URL that serves only the content you want, and then request that URL from your other script.

This is the mechanism we use to share menus and footers and other things between CMSMS websites, even on different servers.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: External access to CMSMS global content

Post by Rolf »

You could use http://dev.cmsmadesimple.org/projects/cacheremotefile

I use it to post CGBlog articles from the main website
http://www.zeijen.nu/feeds/feed-svz-nieuws

To a subdomain website:
http://sportvereniging.zeijen.nu
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm

Re: External access to CMSMS global content

Post by rotezecke »

or CMSMS shop skin helper:

http://www.studio-owens.com/code/cmsms- ... helper.htm

used here: rpc.com.au/catalog
tomkrysl
New Member
New Member
Posts: 5
Joined: Fri Nov 20, 2015 11:33 am

Re: External access to CMSMS global content

Post by tomkrysl »

calguy1000 wrote: You can however setup a separate content page or URL that serves only the content you want, and then request that URL from your other script.
Thank you calguy, I know how to setup separate content page which shows only the header but I don't know how to request that URL from the other php script. Can you give a short example?

Thank you
Post Reply

Return to “CMSMS Core”