-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
DRAFT FEATURE: add information to dimensions menu #3584
DRAFT FEATURE: add information to dimensions menu #3584
Conversation
Currently translated at 100.0% (119 of 119 strings) Translation: Neos/Neos.Ui - Main - 8.3 Translate-URL: https://hosted.weblate.org/projects/neos/neos-ui-main-8-3/nl/
… link to make it possible to open it in a new browser tab
|
||
return mapValues(dimensionConfiguration.presets, | ||
(presetConfiguration, presetName) => { | ||
// if we do not know which dimensions exist, show all as existing | ||
let existing = existingDimensions.length === 1 && existingDimensions[0] === undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue: Sometimes we do not get the existing dimensions (?switching between dimensions with overlapping defined values)
What should be displayed in this case.? (does not feel right, to mix showing and not showing the information)
Hello @MiauzGenau Thanks for your PR! but |
Simon is right. The feature is nice, and we should target 9.0 and then maybe create a custom package that replaces the switcher, so that older Neos versions can use the feature as well :) Awesome that you continued the work from the contribution day in Berlin 👏 |
Recreated here: #3597 (based on 9.0 branch) |
Related to: #3413
What I did
Show in the dimension menu, if a dimension already exists.
Add links to existing dimensions, to be able to open them in new browser tabs.
How I did it
getNodeByContextPath
gives us a Node withotherNodeVariants
attached.With this information we can find out, which content dimensions already exist and display it in the menu.
For the URL building, I use the current
contextPath
and append the respective dimensions.How to verify it
Look at dimension switcher on pages, where not all dimensions exist.
How it looks
Before:
(grey = disallowed)
After:
(grey = does not exist, strike-through = disallowed)
Would need to be updated to 9.0 branch.