How i can show week view calendar of fullcalendar in a custom module ?

Created on 1 February 2016, over 9 years ago
Updated 4 June 2025, 4 days ago

i have created a custom module, and i added .module file and tpl.php file
then i created a js file :

(function ($) {
// define object
    Drupal.RoomsAvailability = Drupal.RoomsAvailability || {};
    Drupal.RoomsAvailability.Modal = Drupal.RoomsAvailability.Modal || {};

    Drupal.behaviors.rooms_availability = {
        attach: function(context) {

            $('#calendar3').fullCalendar({

                header: {
                    left: 'prev,next today prevYear',
                    center: 'title',
                    right: 'nextYear month,agendaWeek,agendaDay'
                },
                axisFormat: 'H(:mm)',/*whatever format you want for axis */
                timeFormat: {
                    agenda: 'H:mm{ - H:mm}'/*time format to be shown on event*/
                }
            })




        }
    };



})(jQuery);

how i can call fullcalendar to my custom module and display it in tpl.php of module?

πŸ“Œ Task
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡ΉπŸ‡³Tunisia Dafer

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States dcam

    I've volunteered to help clean up the FullCalendar issue queue. As part of that effort I'm closing issues open for unsupported versions of the module as "Closed (outdated)". That includes any Drupal 7-compatible versions because no active maintainer is supporting them.

    If this issue is still relevant for version 3.x of FullCalendar, then feel free to re-open it and update the issue version number.

Production build 0.71.5 2024