![]() |
|
|
#1
|
|||
|
|||
|
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? |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
These are two existing installations so I think the second option could be a lot of work unfortunately.
How would the RSS option work? |
|
#4
|
|||
|
|||
|
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. |
|
#5
|
|||
|
|||
|
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. |
|
#6
|
|||
|
|||
|
Is there any documentation for the rss functionality?
|
|
#7
|
|||
|
|||
|
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? |
|
#8
|
|||
|
|||
|
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. |
|
#9
|
|||
|
|||
|
OK - looks like a slightly bigger piece of work, but reasonably easy still.
|
|
#10
|
|||
|
|||
|
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] |
![]() |
| Thread Tools | |
| Display Modes | |
|
|