Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Menu items don't support being provided custom properties anymore #5214
Comments
|
@ayumi-cloud It appears that the October Trick in question was relying on a "hack" so to speak, in that previously we were allowing arbitrary configuration options for the navigation items. @Klaasie's work on #4929 has changed that as now the navigation configuration is converted into true classes that only take the official configuration options, and not just converted to standard objects, as per this method. @LukeTowers I see two options at this juncture - we can either allow |
|
My opinion is for the latter, as there's no real harm in including these values if people want to use them for custom navigation partials. |
|
@bennothommo I prefer the latter as well. See https://github.com/octobercms/october/pull/4929/files#r455474792 for how we can do that. |
|
This issue will be closed and archived in 3 days, as there has been no activity in the last 60 days. |
We had this code running in one of our plugins for quite a while, see example: https://octobertricks.com/tricks/register-custom-side-navigation-for-your-plugin
We believe it stopped working on v466 update (2 updates ago)
When adding the code line:
To see what's being passed through we see the following:
However, the
Plugin.phpfile has the following:Note the
group=something- yet it is not being outputted now?Because of this we are seeing the following code being run:
So the menu nav is showing the word
defaultat the top and below the submenu's are not working because thegroupis not being passed now.Works fine in a previous version 465.