Note that there are some explanatory texts on larger screens.

plurals
  1. POOrchard FullCalendar Module - Add/Edit Event
    primarykey
    data
    text
    <p>I'm trying to make a booking system for Orchard by using the jQuery FullCalendar (<a href="http://arshaw.com/fullcalendar/" rel="nofollow">Link to the jQuery FullCalendar</a>). I found this <a href="https://www.youtube.com/watch?v=Iv7rA-viyTw&amp;list=PL0-GOAU3tpMYm0F1CHYP5_egk0mmAGMab" rel="nofollow">youtube tutorial on how to install FullCalendar as a Widget in Orchard</a> and got it setup in 1.7.2 after a while. Now I would like to be able to add and edit events from the site (currently it's setup so you have to add new events through the admin panel, same with editting).</p> <p>I think the place where I have to start could be in this <a href="http://pastebin.com/dPKW5Xjr" rel="nofollow">pastebin</a>.</p> <p>When I use the following code:</p> <pre><code>//dayClick: function(date, allDay, jsEvent, view) { // if (allDay) { // alert('Clicked on the entire day: ' + date); // }else{ // alert('Clicked on the slot: ' + date); // } // alert('Coordinates: ' + jsEvent.pageX + ',' + jsEvent.pageY); // alert('Current view: ' + view.name); //}, </code></pre> <p>And then click on a time on my calendar it tells me the date and so on (so the onclick event works), I'm just not sure how I should move on from that. I would like to be able to just add an event from the calendar view atm. So far I have been able to add it, but not to save it to the database, I suppose it has something to do with:</p> <pre><code>var fullCalEvents = []; var iterator = function (event) { var newEvent; newEvent = new Booking.Event(event.title, event.start, event.end, event.url, false); fullCalEvents.push(newEvent); }; </code></pre> <p>But I'm not sure where to start.</p> <p>The current select I have written is the one where I can add an event, but not save it in the database.</p> <p>I can provide more information if need be!</p> <p>I hope someone can enlighten me on how to do this.</p> <p>Thank you</p> <p>Casper</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload