Problem/Motivation
Hello and first thanks for this great module which provides a fast way to get a booking system up and running !
Only UI missing is a calendar view, i tried setting up a view with FullCalendar View module.
Date shows in any format, except the calendar view which returns empty/erroneous data and shows an empty calendar.
Tried with stable and latest dev releases of both modules and also smartDate module, latest Drupal 9 stable.
Steps to reproduce
- Install Bookable Calendar and create a booking entities with slots
- Install Fullcalendar View and create a view of booking entites
- Create an unformatted list block view with start and end date fields to check date fields are correct as an output = OK
- Create a view calendar block view, choose start and end date fields = calendar is empty
Proposed resolution
Checking the logs i can see :
InvalidArgumentException: Field field_date is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField()
seeing this same error, it might be related to SmartDate module (issue about joins/relationships, smart_date fields and Fullcalendar) ?
https://www.drupal.org/project/smart_date/issues/3209410
Remaining tasks
Identify where the problem is and if it really has to deal with SmartDate fullcalendar preprocessor, then ask for maintainer or propose a patch ?
User interface changes
none
API changes
none
Data model changes
none as issue seems related to SmartDate module
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | swappy-20220315_235735.png | 31.02 KB | josh.fabean |
| #11 | swappy-20220315_235256.png | 70.23 KB | josh.fabean |
| #7 | fullcalendar_example.png | 26.74 KB | DonoD |
Comments
Comment #2
josh.fabeanGlad it's working for you! A good calendar integration would be great, I agree. I see your issue on smart_date, I'll try the same steps without translations and see if I get the same issues or not.
Comment #3
roman_l commentedHello Josh,
yes it would be great to solve this issue, as your module is only missing a calendar UI to be near perfect !
I had a fast look into code, i can't see at first look translation/lang params.
Comment #4
mandclu commentedMarking #3183554: Entries don't appear when Start date is in a relationship entity as potentially related, since it seems a possible root cause. If you have an opportunity, please test the patch there and provide feedback.
Comment #5
DonoD commentedI've been testing a few modules, this is the one Iam stuck with but I am having problems with fullcalendar view integration. it is worth waiting
Comment #6
DonoD commentedI got missing tokens message in status report. I change the code as below in bookable_calendar.module. The message is gone. Hope it is correct
Comment #7
DonoD commentedHello, for a few days ago a module called "fullcalendar block" was released and I've put some time on integrating bookable calendar with fullcalendar.
The module creates a fullcalendar block fetching the json file you create from the view bookable calendar. I haven't found any issue so far. Everything works smoothly.
I personally appreciate if the booking is done by site members instead of booking contact users. May be in the future.
Comment #10
josh.fabean@DonoD Thanks for the fix to the tokens, got that pushed into dev branch and attributed to you.
Comment #11
josh.fabeanGreat news! In the dev branch of the module is now VERY basic support for module fullcalendar block. I added a new API endpoint of `bookable-calendar/api/{bookable_calendar}/openings` where `{bookable_calendar}` is the ID of the calendar you want to pull opening for.
You will need the module Fullcalendar Block, place the block on a page, and it asks for the Event Source URL which is where you put in the API endpoint URL.
Once that's there, you view the page you will see something like what I have below.
Clicking on an opening will open that opening page for you. Currently, I'm setting `title`, `start`, `end` and `url`. Are there more fields that we need to set?
Issues I need to work out:
Comment #12
DonoD commentedGreat! and thanks for the api.
I used opening instance as json source so my titles are dynamically fetched from calendar. I have 2 bookable calendars with various different booking openings on my site they are listed in the calendar columns as they should. When I click the the title booking rendered data in modal shows up. I can directly book it. And finally no performance issue with 140 instances.
it would be great to distinguish the calendars by colors. Many benefits for those who need many different calendars on their site. But theming so many data in fullcalendar rows and make it simple for site visitors might be tricky
Comment #13
josh.fabeanThis report targets Drupal 9-era versions of Bookable Calendar, Smart Date,
and Fullcalendar View. Bookable Calendar 3.0 supports Drupal 11/12 and exposes
opening data through Views and JSON:API; Calendar View is the currently
documented optional Views-based calendar display. Please reopen or create a
new issue with exported View configuration, exact current module versions,
and the full exception if Fullcalendar View compatibility is still required
and reproducible on 3.0.0-rc1.
AI-Generated: Yes (OpenAI Codex helped draft this project-maintenance update, which was verified against the Bookable Calendar 3.0 branch.)