• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: CGCalendar FullCalendar no link to details page
PostPosted: Mon Sep 26, 2016 11:27 am 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Sat Apr 18, 2009 10:09 pm
Posts: 1425
Location: Maidenhead, UK
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:
Code:
     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)

_________________
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation

CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: CGCalendar FullCalendar no link to details page
PostPosted: Mon Sep 26, 2016 7:17 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 8144
Location: Fernie British Columbia, Canada
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.

_________________
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: googlebot


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting