Legacy Knowledge Base
Published Sep. 10, 2025

Maximum Days to Display option not working as expected in Calendar event

Written By

Amit Tiwari

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

Steps to Reproduce:

1) Start a Liferay bundle
2) Add Calendar portlet to a page.
3) Go to Configurations of calendar portlet.
4) Go to display settings and do the following settings.
i) Enable only the Agenda view
ii) Select “Maximum Days to Display” as 0
iii) Select “Maximum Events to Display” 4 (default value)
5) Save the settings and publish the page
6) Go to Calendar and click on “Add Event”, give the following details:
i) Title as “My Event”
ii) start date as “03rd Feb 2023”
iii) End date as “07th Feb 2023" check “All day” check box
Note: The event should be of min. 5 days (start date and end date should be 5 days apart as we have the max display date value of 4 to check with the max value as well)
7) Click on Publish.
8) click on “03rd Feb 2023" to check 03rd Feb events and observe the behavior. 

Expected Behaviour: Only the 03rd Feb 2023 event should be displayed as we have selected maxDaysDisplayed as 0.

Actual Behaviour: All 5 days' events are displayed. (03rd, 04th, 05th, 06th, 07th) with the same repeating event displayed.

Environment

  • Liferay DXP U33

Resolution

  • The observed behavior is a known issue and has been fixed in Liferay DXP U66.
  • If a hotfix is required for this issue, please create a support ticket requesting a hotfix by attaching patch details.
  • Installing Fix Packs and Hotfixes on LiferayDXP will guide you to install this hotfix in the respective environment.

 

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base