Calendar visualization issue

jo-ka

Member
Hello.
I'm using Fullcalendar visualization, but I'm having some issues:

1 - I've used a Yes/No element for the All Day element, but the result is just some 00 on the label when is set to Nos. If I set to Yes, the 00 disapears, but I can't see no difference between full day or no.

2 - I've set the popup template with the placeholders, and expected to have some information available when I click on the record, but the result is just a blank description. I still can see the label, but not the popup info.

This is with Gantry framework template. If I use a standard template like protostar, even the label doesnt' display.

What might I'm doing wrong?


upload_2021-5-18_16-37-34.png

upload_2021-5-18_16-40-0.png
upload_2021-5-18_16-40-15.pngupload_2021-5-18_17-55-53.png

upload_2021-5-18_16-41-30.png
 
For the missing text:
I assume it's only CSS color setting (try ctrl-a for a quick "select all" test). No idea why Modal content has explicitly set style="color:#ffffff"

Allday is working on my site. Did you define the all day element in the viz settings?

Edit:
Ok, I found the color setting: it's in \plugins\fabrik_visualization\fullcalendar\layouts\fabrik-visualization-fullcalendar-event-modal-popup.php
So you can remove it there or add custom CSS !important or add an override.
Or
https://github.com/Fabrik/fabrik/commit/d6ca35fc9fc8949c4f145e9424e6993c3ff22e1f
 
Last edited:
@troester , so for the all_day I have a yes/no element like this:
upload_2021-5-19_8-49-48.png

then, in the visualization settings, I've set it like this:

upload_2021-5-19_8-53-47.png

So, after this, If the all day is set to No, it displays two 00 on the left side of the event.
upload_2021-5-19_8-54-48.pngupload_2021-5-19_8-55-30.png

If set to yes, the result is as this, whith no zeros on the event.
upload_2021-5-19_8-57-5.pngupload_2021-5-19_8-59-30.png

I don't know what I shoud expect here, but this is whats happening now...
 

Attachments

  • upload_2021-5-19_8-55-7.png
    upload_2021-5-19_8-55-7.png
    5.8 KB · Views: 54
What is to expect:
In month view (I assume this is what you are showing) the all-day event is shown without time (so yours is looking ok), a standard event is shown with start time.
What did you set as "Time format" in Options? Default is H( :mm) which is only hours, which is 00 (12:00 AM) in your example, so this seems to be correct, too.
With format H:mm you should get something like this (month view and week view)
upload_2021-5-19_12-47-37.pngupload_2021-5-19_12-47-21.png
 
Thanks @troester , I think I was able to get it working. Perfect.
Just one more thing:

Where do I control the event modal time format? I would like to show the time as: 10:00 and 11:00 and not with the AM/PM text.
I've set the element time format as H:i and the calendar time format as HH:mm as per your suggestion.

Thanks in advance.


upload_2021-5-19_12-39-36.png


upload_2021-5-19_12-43-50.png


upload_2021-5-19_12-46-30.png
 
This is hardcoded as 'hh.mm A' in the JS file plugins\fabrik_visualization\fullcalendar\fullcalendar.js:( (You can hack it, but additionally minify or copy it to fullcalendar-min.js)
upload_2021-5-19_15-43-54.png
 
Perfect @troester . I've changed both files and it's working.

I assume that if I update the module, this changes will be lost, right?
So, what shall be the best way to have this respecting the element time format?
 
There are some more issue with the "small" popup (e.g. allday will show wrong end date...).
I'll see if I can put something into GitHub
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top