Avatar of ucohockey
ucohockey
 asked on

FullCalendar event link

I'm using the fullcalendar and working great, but I want to give the user the option to goto two different url's when pressing the event on the calendar. Right now I have it going to the url listed, but I would like them to beable to choose a link for the description and maybe a link to go back where they created the event. I hope this makes sense. Again when viewing the calendar and you click on a event you might have a drop down that says Details and one that might say edit.

Thanks
JavaScriptjQuery

Avatar of undefined
Last Comment
Julian Hansen

8/22/2022 - Mon
Julian Hansen

Can we have a context - a link, some code - somewhere to start.
ucohockey

ASKER
Here is the link to the calendar you can and an event url but I would like to add a drop down on the event so you can choose multiple url's

https://fullcalendar.io/js/fullcalendar-3.6.2/demos/basic-views.html
Julian Hansen

I am still not 100% sure on the requirement - the link helps but I need to understand why you need users to have a choice - can you not simply just load two events on the day?
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
ucohockey

ASKER
I need the ability to go and edit the event or view the event or certain details about the event. I have a form that is filled out to create the event then the calendar is populated from a database, so I want to beable to view the details about the event or click edit the event. I hope that helps.
Julian Hansen

Not really - the plugin renders out a calendar based on the data you give it - which can include JSON sources (and multiple of them).

The editing aspect I would imagine is something you do through a form, update a database and then have the calendar pull the data from the DB to render the changes.

From your question it sounds like you want FullCalendar to do that for you - or am I missing the requirement?
ucohockey

ASKER
Let me try and explain better. I want the ability to give the user looking at the calendar and clicks on an event the ability to view the detail of the event (that I currently can do), and also the ability to edit the event. So when the user clicks on the event in the calendar he will be present a dropdown saying view details and one that says edit details.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
lenamtl

Hi,

Having a buttons into the cell this can become clutter...
To avoid this you can add JS click event on the event then view the details and have a edit button into the popup.
http://pauloreg.com/d/affc2-samples/bakery/
https://codecanyon.net/item/ajax-full-featured-calendar-2/10158465

or another way is to have the editable item clickable from a popup / or from a div if you don't like popup
http://ezcode.pt/themes/EventCalendar/
https://codecanyon.net/item/event-calendar-phpmysql-plugin/19246267

Here is a way to add a click event directly on the even from the calendar
This is allow to edit by the item / event ID  
when you click the item it open a popup and you can edit the event title
This is just an example you can adjust to your needs
https://jsfiddle.net/lenamtl/jg2Lczy8/4/

This will required some Ajax & PHP to save the updated value in DB.
ASKER CERTIFIED SOLUTION
Julian Hansen

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.