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

DRAFT FEATURE: add information to dimensions menu #3584

Closed

Conversation

MiauzGenau
Copy link

@MiauzGenau MiauzGenau commented Jul 27, 2023

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 with otherNodeVariants 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)
Screenshot 2023-07-27 at 16 25 28

After:
(grey = does not exist, strike-through = disallowed)
Screenshot 2023-07-27 at 16 22 44

Would need to be updated to 9.0 branch.

Jenkins and others added 3 commits July 12, 2023 13:04
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
@github-actions github-actions bot added the 8.3 label Jul 27, 2023

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;
Copy link
Author

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)

@MiauzGenau MiauzGenau changed the title DRAFT: add information to dimensions menu DRAFT FEATURE: add information to dimensions menu Jul 27, 2023
@crydotsnake
Copy link
Member

Hello @MiauzGenau

Thanks for your PR! but FEATURE PRs should target the Neos 9.0 branch :)

@markusguenther
Copy link
Member

Hello @MiauzGenau

Thanks for your PR! but FEATURE PRs should target the Neos 9.0 branch :)

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 👏

@MiauzGenau MiauzGenau changed the base branch from 8.3 to 9.0 August 11, 2023 11:23
@github-actions github-actions bot added 9.0 and removed 8.3 labels Aug 11, 2023
@MiauzGenau
Copy link
Author

Recreated here: #3597 (based on 9.0 branch)

@MiauzGenau MiauzGenau closed this Aug 16, 2023
@MiauzGenau MiauzGenau deleted the dimension-menu-information-additions branch January 18, 2024 11:36
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.

None yet

3 participants