Welcome Guest, Not a member yet? Register   Sign In
Adding multiple variables to calendar days
#6

Quote:Is codeigniter forum dead?
Certainly not. Maybe there aren't that many users who have customized the calendering class. I agree that the documentation is not very clear about passing data to the class, if you want something else than just one link per day.

To make a link of every day in the calendar, in order to edit the information, you could use something like this in the template:
PHP Code:
{cal_cell_no_content}<a href="controller/method/{year]/{month}/{day}">{day}</a>{/cal_cell_no_content}
{
cal_cell_no_content_today}<div class="highlight"><a href="controller/method/{year}/{month}/{day}>">{day}</a></div>{/cal_cell_no_content_today

In the above example, replace controller/method with your own controller/method to edit the information for the given day. The year, month and day are passed as parameters in the URL. E.g. calendar/edit/2017/8/3.

The bootstrap calendar shows the appointments when you hover the mouse over the date. You'll need Javascript (or jQuery) to achieve that. In the jQuery function that is triggered when hovering, you can use AJAX to fetch the appointments for that day.
Reply


Messages In This Thread
RE: Adding multiple variables to calendar days - by Wouter60 - 08-03-2017, 02:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB