MonkeyCMS Forum

Go Back   MonkeyCMS Forum > MonkeyCMS > Content Discussion
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 03-12-2010, 12:53 PM
harvey harvey is offline
Senior Member
 
Join Date: Jun 2008
Posts: 474
Default Sharing content between separate Monkey sites

Would it be possible to share content between two separate Monkey sites?

For example an organisation has two divisions, both with its own individual Monkey based site, and they want a recruitment page on both. Is there any way of entering the job details on one site and have it appear on both?
Reply With Quote
  #2  
Old 03-12-2010, 12:59 PM
Colin Colin is offline
Administrator
 
Join Date: Apr 2007
Posts: 1,614
Default

Maybe through RSS? You'll need CRON access to do that but it's pretty straightforward with a plugin I have.


The other option is to run everything off one installation and have two different skins displayed through Domian/Skin mapping.
Reply With Quote
  #3  
Old 03-12-2010, 01:06 PM
harvey harvey is offline
Senior Member
 
Join Date: Jun 2008
Posts: 474
Default

These are two existing installations so I think the second option could be a lot of work unfortunately.

How would the RSS option work?
Reply With Quote
  #4  
Old 03-12-2010, 01:09 PM
Colin Colin is offline
Administrator
 
Join Date: Apr 2007
Posts: 1,614
Default

You would need to set up a CRON job to run the rssupdate script for the definition that would include the job specs on one site and then on the other site you would need a CRON job that runs the getrss.php script (along with an RSS plugin and include that I can send you) that will then pull in the RSS feed from site 1 and display it on the second site.

Alternatively, if they're both on the same server it might be more feasible to write a plugin that just calls over to the other database and pulls the info out directly. That wouldn't be too hard - I could probably knock something together for you quite quickly.
Reply With Quote
  #5  
Old 03-12-2010, 01:11 PM
harvey harvey is offline
Senior Member
 
Join Date: Jun 2008
Posts: 474
Default

I'd definitely be interested in the plugin for something else I'm playing with at the moment if thats OK.

If the second way isn't too much trouble it sounds a good option.
Reply With Quote
  #6  
Old 03-12-2010, 01:12 PM
harvey harvey is offline
Senior Member
 
Join Date: Jun 2008
Posts: 474
Default

Is there any documentation for the rss functionality?
Reply With Quote
  #7  
Old 03-12-2010, 01:41 PM
Colin Colin is offline
Administrator
 
Join Date: Apr 2007
Posts: 1,614
Default

Not really at the moment. However, I can knock something together early next week.

I think the plugin would be easy enough. In the instance of this installation, would the database be on the same server for both sites, with the same login credentials?
Reply With Quote
  #8  
Old 03-12-2010, 01:48 PM
harvey harvey is offline
Senior Member
 
Join Date: Jun 2008
Posts: 474
Default

No, in this instance the database is on the same server, but they have different login details.

PM Also sent about something else BTW Colin.
Reply With Quote
  #9  
Old 03-12-2010, 01:56 PM
Colin Colin is offline
Administrator
 
Join Date: Apr 2007
Posts: 1,614
Default

Quote:
Originally Posted by harvey View Post
No, in this instance the database is on the same server, but they have different login details.

PM Also sent about something else BTW Colin.
OK - looks like a slightly bigger piece of work, but reasonably easy still.
Reply With Quote
  #10  
Old 03-12-2010, 02:07 PM
Colin Colin is offline
Administrator
 
Join Date: Apr 2007
Posts: 1,614
Default

Drop the attached plugin files into your plugins folder and call the function as follows:

[getremotecontent|definitionid|databasename|databas eserver|databaseuser|databasepassword|databasepref ix|contenttemplate|order|startrecord|numberofresul ts]
Attached Files
File Type: zip getremotecontent.zip (1.2 KB, 1 views)
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 03:50 AM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© Poisonous Monkey