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

NGSTACK-448 Implement active state on main menu via JS #34

Merged
merged 8 commits into from
Nov 9, 2020
Merged

Conversation

hknezevic
Copy link
Member

Implement active state on main menu via JS

@hknezevic hknezevic requested a review from emodric October 16, 2020 11:42
@hknezevic hknezevic changed the title Ngstack 448 NGSTACK-448 Implement active state on main menu via JS Oct 16, 2020
@emodric emodric requested a review from Ljudevit October 20, 2020 10:21
…es; just check location not empty in pagelayout; remove raw
…ck, to make clear what changes were applied compared to the original
@@ -32,7 +32,7 @@

{% include '@NetgenSite/parts/facebook_api.html.twig' %}

<div id="page"{% if page_css_class|default is not empty %} class="{{ page_css_class }}"{% endif %}>
<div id="page"{% if page_css_class|default is not empty %} class="{{ page_css_class }}"{% endif %}{% if location is defined and location is not empty %} data-path='["{{ location.path|join('","') }}"]'{% endif %}>
Copy link
Member Author

@hknezevic hknezevic Nov 9, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@emodric I have completely remove the code block from the pagelayout_variables.html.twig. I am only doing the check for the location object here (exists and not empty) so it doesn't crash on module pages like search or tag view. Raw was removed as well as the slicing of the system root node.

@emodric emodric merged commit 52994d6 into 1.9 Nov 9, 2020
@emodric emodric deleted the NGSTACK-448 branch November 9, 2020 13:51
@emodric
Copy link
Member

emodric commented Nov 9, 2020

Thanks @hknezevic !

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

Successfully merging this pull request may close these issues.

3 participants