Results 1 to 4 of 4

Thread: Differentiate Booked and non booked event on calendar

  1. #1
    User
    Join Date
    11-23-09.
    Location
    Valais, Switzerland
    Posts
    77

    Default Differentiate Booked and non booked event on calendar

    What I have done :
    I have a calendar with event (reservation). User can register the event and after the event is booked. Nobody more can register for this event.

    My problem :
    On the main calendar user can see all events (already booked events and non booked events), user must click the event to see if the event is free or not. It is not very user friendly. Did we have a way to make (on the calendar) the already booked event non-clickable and red and the free event green (for example)?

    thanks for help

  2. #2
    Experienced user
    Join Date
    06-11-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: Differentiate Booked and non booked event on calendar

    Nope. The Calendar Events is an extension of the existing event system, so rewriting all the modules to make it work like you want it, will quickly make the module incompatible when TL upgrades happen.

    You can of course copy the calendar module and make your own calendar that does this check. Remember that ALL modules must be duplicated to introduce this feature, Event Calendar, EventList, EventReader (already done), so its a lot of files to manage. There was a hook, I'll look into it, maybe that would be a way to achieve this.

  3. #3
    User
    Join Date
    11-23-09.
    Location
    Valais, Switzerland
    Posts
    77

    Default Re: Differentiate Booked and non booked event on calendar

    Quote Originally Posted by thyon
    Nope. The Calendar Events is an extension of the existing event system, so rewriting all the modules to make it work like you want it, will quickly make the module incompatible when TL upgrades happen.

    You can of course copy the calendar module and make your own calendar that does this check. Remember that ALL modules must be duplicated to introduce this feature, Event Calendar, EventList, EventReader (already done), so its a lot of files to manage. There was a hook, I'll look into it, maybe that would be a way to achieve this.
    Thanks for the speed answer!

    Ok why not ;-) I will notify you if I do it.

  4. #4
    User MacKP's Avatar
    Join Date
    06-19-09.
    Location
    Duisburg (Germany)
    Posts
    211

    Default Re: Differentiate Booked and non booked event on calendar

    Hi synergie,
    when i get it right you can use 2 calenders... one for booking and one without...
    When you display both you can change the color ore whatever with CSS because every calender has his own class.

    Maybe thats enough for you ;-)

    regards
    Mediendepot Ruhr
    For real-time chat the (inofficial) Chatroom in IRC:
    -> irc.freenode.net #contao | irc.freenode.net #contao.de

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •