Posted by kmillecam-gdo on February 25, 2008 at 5:47pm
Hi all,
Hope you don't mind me brainstorming with you but I figured:
1) this has proven to be a collection of bright Drupal heads.
2) i may actually get a response here ... no such luck in the Drupal forums.
Anyway, I'm looking for a way to expose the calendar block (from one site) as a block on a static HTML site.
I'm thinking I might have to write a module that periodically dumps the calendar HTML into a static file that can be included using a server-side include or javascript.
Any one else have a better idea?
Thanks,
Kevin

Comments
that sounds like the best idea
Write a module to dump the html sounds like by far the best idea. If the other site were a Drupal site there might be some way of transfering the calender info over via the services module.
Kyle Mathews
Kyle Mathews
other possibilities
I think the module that does periodic dumps might not be a bad way to go, but you'll have to worry about stale data, or run cron very frequently. Also, how static is this other site? No php available?
A couple other options:
I don't know that these are any better than the first, but it may be easier than writing to a file on a different server.
Thanks guys. This gives me
Thanks guys.
This gives me something to chew on.
I'll probably go the "save HTML to a file" route initially -- knowing that it'll never reflect current information -- and maybe look into the AJAX or iFrame solutions later.
Kevin
Did you get your calendar working?
You could also export the calendar using the views I-Cal if you had something to load and display the I-Cal data.
Never tried this with a calendar but we have also done alot of other data with RSS feeds and then use flash to display the data.