Page/Calendar integration

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
rscott
New Member
New Member
Posts: 4
Joined: Sun Dec 28, 2008 6:30 pm

Page/Calendar integration

Post by rscott »

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 ?
Peciura

Re: Page/Calendar integration

Post by Peciura »

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
{$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}
Of course there are some assumptions for each idea...
rscott
New Member
New Member
Posts: 4
Joined: Sun Dec 28, 2008 6:30 pm

Re: Page/Calendar integration

Post by rscott »

Thanks - I'll give these a try and report back.
Locked

Return to “Modules/Add-Ons”