CMS Made Simple Forums

CGCalendar FullCalendar no link to details page
Page 1 of 1

Author:  paulbaker [ Mon Sep 26, 2016 11:27 am ]
Post subject:  CGCalendar FullCalendar no link to details page

In "old" CGCalendar (CMSMS V1) you used to be able to structure the template with if statements so that if the event details field was blank (it often is on my sites), then no link to the full details page is shown (as there is nothing more to show than already appears on the full calendar page).

I have looked around (including the Site Admin > CGCalendar Settings page and also the "CGCalendar FullCalendar View Sample" template) but I cannot see how to do that anymore. It seems that the tight integration with the FullCalendar package does not allow such fine tuning.

The best I can do is turn off all links to details pages (I don't want to remove them all) by removing this from the "CGCalendar FullCalendar View Sample" template:
     eventClick: function(event, jsEvent, view) {
       // woot, we can go to a detail view.
       window.location = event.detail_url;

Does anyone know how to achieve this?

Thanks 8)

Author:  calguy1000 [ Mon Sep 26, 2016 7:17 pm ]
Post subject:  Re: CGCalendar FullCalendar no link to details page

In FullCalendar you would need to play with the eventRender callback to override the way that events are rendered if you wanted to vary the rendering based on what was in the event object.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group