Posted: September 22, 2014 at 12:05 pm
|
September 22, 2014 at 12:05 pm hey! I’ve already solved the problem for the event-table with your help in this topic: https://eventespresso.com/topic/manual-links-in-event-titles/. Can you please provide me the changes for the SAME thing, only in the event calender? I’ve added some links in my titles and now on the event-calender it shows the uninterpreted html-codes. Which line in the calender-php do I have to change, to allow html? thank you again! |
|
Hi, Not easily, at the very least not without doing modifications to the JavaScript. You can add in something to $events[ $cntr ]['title'] = htmlspecialchars_decode(stripslashes($event->event_name ), ENT_QUOTES); which works well for the tooltip but messes up the calendar event as it’s adding in a link within a link. Your best option might be just to add it to the tooltip itself. Below $events[ $cntr ]['tooltip'] = ' add $events[ $cntr ]['tooltip'] .= 'wibble'; Obviously changing the HTML to suit your needs |
|
hey dean! thanks for your tip, but that won’t work for me. Isn’t there just one line in the file that strips the html for the event_title? thanks again! |
|
Hi, Unfortunately not. The code you are seeing is because the Title for the event is being passed to the Fullcalendar script along with an URL. The URL is wrapping the title (and your link) so your link is reduced to text as you cant have a link within a link. As such the only way to get around it would be to hack at the Fullcalendar core JavaScript, which is not recommended nor supported. One option would be to modify the URL of the event, but then it would only link to the new link rather than the event, which seems a little pointless. You could also add a custom item in called description, but again this would require modifications to the core JS: http://fullcalendar.io/docs/event_data/Event_Object/ (see Non Standard Fields at the bottom). |
|
hi! which javascript do I have to hack? Is it “fullcalender.min.js” or is it “espresso_calendar.js”? thanks! |
|
Hey, I didn’t look at it in detail but most likely both, with more emphasis on the full calendar JavaScript. The full un-minified version can be found here http://fullcalendar.io/download/ but note we are currently using an older version (1.6.2) |
|
September 23, 2014 at 11:15 am hey! managed it inside the .js – wasn’t this hard 🙂 thanks! |
Hi Alexander, Please be sure to backup your core edits as these will be lost on a software update. — |
|
The support post ‘Manual Links in Calender’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.