User tests: Successful: Unsuccessful:
Apply patch and look out for a MenuItem-Field (e.g. creating a menu item with the type "alias"). Nested items should now be prefixed with the level indicator "- ".
none
Labels |
Added:
?
|
Labels |
Added:
?
|
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-04-15 01:46:57 |
Status | Closed | ⇒ | New |
Category | ⇒ | Libraries |
Status | New | ⇒ | Pending |
That could be nice, easiest to read on deepth menu, and what about adding language if multilangue enabled ?
@Devportobello
Do you mean when a menu has submenu items tagged to different languages in multilang?
@infograf768
Yes, like :
mainmenu - en-GB
mainmenu - fr-FR
That one is not necessary imho as the language is not important in that case.
What "could" be necessary is rather (not tested with this patch):
Mainmenu-ALL
Level 1 => fr-FR item
Level 1 => en-GB item
Level 2 => en-GB item
Level 3 => fr-FR item
etc.
How would it behave if we load that menu in a fr-FR page or in a en-GB page is the matter.
Just noticed what i said is when menu and submenu items tagged to same language... my bad ;)
This patch does not alter the behavior. It just adds visual indicators.
Well, that's odd. I will take a look at this.
Thanks for checking @Devportobello You are correct it was my issue. I have not in mind that the frontendviews
menu don't have any kind levels.
I have just retestet and it works now. Sorry @nueckman for the false alarm
Status | Pending | ⇒ | Ready to Commit |
RTC as we have two successful tests
Labels |
Added:
?
|
Labels |
Added:
?
|
Labels |
Added:
?
|
Labels |
Added:
?
|
Milestone |
Added: |
Merged into 3.5-dev branch - thanks!
Status | Ready to Commit | ⇒ | Closed |
Closed_Date | 2015-04-15 01:46:57 | ⇒ | 2015-05-25 01:21:26 |
Closed_By | ⇒ | wilsonge |
Well, can't blame myself enough for the typo (wrong parameter).
But i'm not so sure about the second thing (level <= 0). root
is the only item which can be level 0, but as you never navigate to root (it's just the root for nested set reasons), i don't know why root should be displayed in the first place.
if "menu_type" params setup => Menuitem field
Then used for querying => Menus helper
lead to add root item
Thanks @Devportobello. What i actually meant was "is it really necessary to show the root?"
ye right question, i dont know why this is needed too.
Do you want to create a PR for the other issue (wrong parameter)? In the meanwhile i will dig through the code.
Still no clue. But we could ask @eddieajau about his commit several years ago ;) (70accbd)
There seems to be no reason why getMenuLinks
does select the root.
RTC is only used against the open PR's - this already got merged by me before you bought up this issue. If you just create a new PR to fix the broken behaviour that would be awesome :)
FYI, still couldn't find a reason for selecting the root node.
Maybe this is need in another part of Joomla (this is a helper), so making modification in MenusHelper::getMenuLinks could lead to B/C, adding another function is a better way or just handle level 0 in module ?
Sorry for jumping in, but since this was my fault, i wanted to fix it asap.
Labels |
Removed:
?
|
Close / Reopen for TravisCI