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

[#7267 #7264] serve nav menu dependent on url and add ls to footer #692

Merged
merged 3 commits into from
May 8, 2023

Conversation

philli-m
Copy link
Contributor

@philli-m philli-m commented May 3, 2023

NOTE: This is does not include the functionality to go back to LS homepage if no LS content on current page when lang switch changed.

@philli-m philli-m force-pushed the pm-2023-5-nav-menus branch 4 times, most recently from 5ff216e to bedcc68 Compare May 4, 2023 13:16
apps/snippets/models.py Outdated Show resolved Hide resolved
@Rineee
Copy link
Contributor

Rineee commented May 5, 2023

@philli-m I added a commit that adds a template tag to decide if there is content. Although it relies on the naming of the panels, which is not ideal, but I think there is no other way? I added a comment, although a test would probably be better 🤣 Should we document it somewhere else?

I spoke to Max and he said that if there is any content, the page should be displayed as it is very unlikely that only e.g. the title will be filled. I guess thats true, but maybe a helptext in the easy language tab could also explain the behaviour that the page is displayed if any of the fields are filled?

Copy link
Contributor

@fuzzylogic2000 fuzzylogic2000 left a comment

Choose a reason for hiding this comment

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

NIce! Will change the string and merge.

Phillippa and others added 3 commits May 8, 2023 09:42
@fuzzylogic2000 fuzzylogic2000 changed the title WIP [#7267 #7264] serve nav menu dependent on url and add ls to footer [#7267 #7264] serve nav menu dependent on url and add ls to footer May 8, 2023
@fuzzylogic2000 fuzzylogic2000 enabled auto-merge (rebase) May 8, 2023 07:44
@fuzzylogic2000 fuzzylogic2000 merged commit cde5220 into main May 8, 2023
@fuzzylogic2000 fuzzylogic2000 deleted the pm-2023-5-nav-menus branch May 8, 2023 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants