I'm considering migrating a riding club website I maintain from Drupal to CMSMS. As part of this, I'd like to be able to have an events calendar which links to pages with details of the event (these would be normal cmsms pages, not the event details).
I'm thinking the simplest way would be to somehow add a date field to the page definition , then show these on a calendar (possibly using an event to add/update/delete a CGCalendar event).
Has anyone done anything similar to this ?
Page/Calendar integration
Re: Page/Calendar integration
Easier approach is CGCalendar -> Page and not Page -> CGCalendar. If you insist o later you should know a handful of things first:
a. Advanced Content module
b. events (e.g. ContentEditPre and ContentEditPost)
c. Write UDT that deletes old and creates new calendar events depending on content dates.
CGCalendar -> Page approach is bit easier
a. create calendar event, write everything you want to see on content page
b. create calendar field that would store alias ( or id ) of corresponding page.
c. create UDT for event EventEdited that would synchronize page and calendar event
There is yet another solution. It might be the easiest to accomplish.
a. create page (lets say page alias is 'event_one').
b. paste tag to calendar event
a. Advanced Content module
b. events (e.g. ContentEditPre and ContentEditPost)
c. Write UDT that deletes old and creates new calendar events depending on content dates.
CGCalendar -> Page approach is bit easier
a. create calendar event, write everything you want to see on content page
b. create calendar field that would store alias ( or id ) of corresponding page.
c. create UDT for event EventEdited that would synchronize page and calendar event
There is yet another solution. It might be the easiest to accomplish.
a. create page (lets say page alias is 'event_one').
b. paste tag to calendar event
Of course there are some assumptions for each idea...{$cgsimple->get_page_content('event_one','content_en','foo')}{eval var=$foo} {*requires CGSimpleSmarty cmodule*}
or
{cms_selflink href='event_one' assign='tmp' urlparam='&showtemplate=false'}
{fetch file=$tmp}
Re: Page/Calendar integration
Thanks - I'll give these a try and report back.