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

Menu Widget has stopped working (OSOE-897) #175

Closed
barthamark opened this issue Aug 19, 2024 · 8 comments · Fixed by #182
Closed

Menu Widget has stopped working (OSOE-897) #175

barthamark opened this issue Aug 19, 2024 · 8 comments · Fixed by #182

Comments

@barthamark
Copy link
Member

barthamark commented Aug 19, 2024

Menu Widget doesn't provide the UI to either pick a menu or edit a new one. Probably it stopped working after an Orchard Core upgrade.

Jira issue

@github-actions github-actions bot changed the title Menu Widget has stopped working Menu Widget has stopped working (OSOE-897) Aug 19, 2024
@sarahelsaig
Copy link
Member

The menu widget processes INavigationProvider services where the navigation name is "main" (see MainMenuNavigationProviderBase) Just like with the admin menus that come from navigation providers, these are added programmatically and can't be edited from the dashboard.

Lombiq.BaseTheme adds a provider called MainMenuNavigationProvider that uses stock OC menu convention. It looks for a content item that has a MenuItemsListPart and an alias of "main-menu" so you can edit this content item without the need for a separate UI. If you want to be fancy, you can use OrchardCore.AdminMenu to add a link pointing directly to its content item editor, OC's Blog recipe does this for example. (btw we have UI tests for this so we'd know if it was broken)

I don't think there is anything that needs to be done here. Please confirm.

@barthamark
Copy link
Member Author

It caused confusion with the client and rightfully so. We should either rename it (e.g., NavigationWidget or MenuPlaceholderWidget) and add description to it where it says what it does exactly. Thoughts?

@sarahelsaig
Copy link
Member

Renaming would be an unnecessary breaking change with not that much of an improvement in my eyes. I guess we could add further elaboration into the readme and a .WithDescription() to the widget's type definition in the migrations.

@Piedone Piedone added the bug label Sep 4, 2024
@barthamark
Copy link
Member Author

How about renaming the Display Name? Also adding Description.

@sarahelsaig
Copy link
Member

I could go for "Menu Navigation Provider Widget" as display name, if that helps.

@Piedone
Copy link
Member

Piedone commented Oct 1, 2024

So this is only about adding a display name?

@sarahelsaig
Copy link
Member

Yes, also to add some note in the readme.

@Piedone
Copy link
Member

Piedone commented Oct 1, 2024

OK, thanks. Sounds like an easy issue, then.

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

Successfully merging a pull request may close this issue.

3 participants