Quote:
|
Originally Posted by crash777 I have a calendar on one site and need to "port" the information over to other sites. I thought about using RSS to do that. I tried the solution above but that didn't seem to do it. Anyone have any suggestions on how I can go about doing this so that I only have to manage 1 calendar instead of 5?
Thanks! |
I can think of three relatively "simple" ways to do this.
You could use the mamsites hack available at
www.mamboportal.com. This allows you to use a single database for multiple sites. I havent tried it and might be wrong as it might just merge the users and core db tables. And have different tables for components.
Since only registered users can add events you will have to have the users registered on all 5 sites.
You could use index2.php instead of index.php, and use iframes around index2.php of the site containing the events component on each site.
Index2.php contains the mainbody only (components output) and does not have the modules or template structure to it. So if you have /index2.php?option=com_events it will show only the calendar. You can then wrap this in an iframe on any site. You can use the wrapper component or just wrap it in a module or something like that. You will however have to change each instance of the index.php links to index2.php.
You can also ... you know what.. i forgot the third.. hahaha.. gettin sleepy too. oh thtats it..
You can write a lil php script that fopens and freads the calendar component from the site you have it on. This will have to fread index2.php?option=com_events also and have each instance of the index.php changed to your script url and append the optional parameters to the end of the url string for your script to fread. Then when you display the "scraped" html you will have your calendar which gets its info from just one db.
all kinda messy things to do though... cant think of any other way then just making each events component point to your main db by hardcoding this into the component.