contao/calendar-bundle

Mixed calendars in eventlist module shows always "first", "last" and "even" class in html markup

Closed this issue · 3 comments

mpitz commented

If you mix calendars in the eventlist module the classes in the html markup are always "first" and "last". But the first element should have the class "first" and the last element "last" independent of the mixed calendars.

image

By the way. The even and odd classes are also set wrong. It's every time "even".

Here are the settings from the module:

image

Contao 4.4.13

I cannot reproduce this in the official demo.

How do I reproduce this on demo.contao.org?

mpitz commented

Sorry for the late feedback.

I can reproduce this on demo.contao.org:

  • Add 2 calendars and fill them up with 2 and 1 event in the past (additional: add time Option):
    backend-events

  • Add a module (Event list) with the following settings:
    backend-event-module

  • Add the module to the page layout (2 columns):
    backend-page-layout-2-columns

Than you can explore in the frontend:
frontend

And you can see the mentioned classes:
dev-tools

Even/odd is reset after each header, so the generated markup is fine. If you have more than one event per day, the CSS classes will be applied accordingly.