Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with [News Archive Menu]: Active year no longer marked as active #275

Open
Webstylerin opened this issue Nov 28, 2024 · 0 comments
Open

Comments

@Webstylerin
Copy link

Hello everyone,

I am using Contao 5.3.18 with the modules [News Archive] and [News Archive Menu].

In the News Archive Menu, I want to display the years without showing the “Number of entries”. Additionally, the current year should be marked with .active and , which works perfectly.

However, after installing the extension codefog/contao-news_categories, I encountered the following issues:
1. The “Number of entries” setting is ignored, and the number is always displayed. I could fix this by customizing the template if necessary.
2. The active year is no longer marked as .active. The $this->activeYear variable is empty. If I change the view to “Month,” it works again…

I haven’t changed any module settings between “working without the extension” and “broken with the extension.”

For reference:
• I have a customized template for news_latest.html5, but I deactivated my customized mod_newsmenu.html5 for testing.
• No other custom templates for news are present.

Does anyone have an idea of what might be causing this issue or how I could fix it?

Thanks in advance for your help! 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant