? ? Success

User tests: Successful: Unsuccessful:

avatar nueckman
nueckman
15 Apr 2015

Test instructions

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 "- ".

B/C

none

avatar nueckman nueckman - open - 15 Apr 2015
avatar joomla-cms-bot joomla-cms-bot - change - 15 Apr 2015
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 15 Apr 2015
Labels Added: ?
avatar nueckman
nueckman - comment - 15 Apr 2015

Close / Reopen for TravisCI

avatar nueckman nueckman - change - 15 Apr 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-04-15 01:46:57
avatar nueckman nueckman - close - 15 Apr 2015
avatar nueckman nueckman - close - 15 Apr 2015
avatar nueckman nueckman - change - 15 Apr 2015
Status Closed New
avatar nueckman nueckman - reopen - 15 Apr 2015
avatar nueckman nueckman - reopen - 15 Apr 2015
fb90be0 15 Apr 2015 avatar nueckman CS
avatar zero-24 zero-24 - change - 29 Apr 2015
Category Libraries
avatar zero-24 zero-24 - change - 29 Apr 2015
Status New Pending
avatar Devportobello
Devportobello - comment - 7 May 2015

That could be nice, easiest to read on deepth menu, and what about adding language if multilangue enabled ?

avatar infograf768
infograf768 - comment - 7 May 2015

@Devportobello
Do you mean when a menu has submenu items tagged to different languages in multilang?

avatar Devportobello
Devportobello - comment - 7 May 2015

@infograf768
Yes, like :

  • mainmenu - en-GB

    • home - en-GB
    • Who are we - en-GB
  • mainmenu - fr-FR

    • Accueil - fr-FR
    • Qui sommes-nous - fr-FR
avatar infograf768
infograf768 - comment - 7 May 2015

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.

avatar Devportobello
Devportobello - comment - 7 May 2015

Just noticed what i said is when menu and submenu items tagged to same language... my bad ;)

avatar nueckman
nueckman - comment - 7 May 2015

This patch does not alter the behavior. It just adds visual indicators.

avatar zero-24
zero-24 - comment - 7 May 2015

@nueckman i have just tested this but the indicators are only add for the first menu. The others are still without -

see:
6782

avatar nueckman
nueckman - comment - 7 May 2015

Well, that's odd. I will take a look at this.

avatar Devportobello
Devportobello - comment - 7 May 2015

@nueckman
My bad, you right so my idea need to be in another PR.

@zero-24
Just test and dont got your result
pr-6782-screen1

avatar zero-24
zero-24 - comment - 7 May 2015

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

avatar zero-24 zero-24 - test_item - 7 May 2015 - Tested successfully
avatar zero-24 zero-24 - alter_testresult - 7 May 2015 - Devportobello: Tested successfully
avatar zero-24 zero-24 - change - 7 May 2015
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 7 May 2015

RTC as we have two successful tests :smile:


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6782.

avatar zero-24 zero-24 - change - 7 May 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 7 May 2015
Labels Added: ?
avatar wilsonge wilsonge - change - 25 May 2015
Labels Added: ?
avatar wilsonge wilsonge - change - 25 May 2015
Labels Added: ?
avatar wilsonge wilsonge - change - 25 May 2015
Milestone Added:
avatar wilsonge wilsonge - reference | 479329a - 25 May 15
avatar wilsonge
wilsonge - comment - 25 May 2015

Merged into 3.5-dev branch - thanks!

avatar wilsonge wilsonge - change - 25 May 2015
Status Ready to Commit Closed
Closed_Date 2015-04-15 01:46:57 2015-05-25 01:21:26
Closed_By wilsonge
avatar wilsonge wilsonge - close - 25 May 2015
avatar zero-24 zero-24 - close - 25 May 2015
avatar wilsonge wilsonge - close - 25 May 2015
avatar Devportobello Devportobello - reference | 7d665fb - 5 Jun 15
avatar nueckman
nueckman - comment - 5 Jun 2015

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.

avatar Devportobello
Devportobello - comment - 5 Jun 2015

if "menu_type" params setup => Menuitem field
Then used for querying => Menus helper
lead to add root item

avatar nueckman
nueckman - comment - 5 Jun 2015

Thanks @Devportobello. What i actually meant was "is it really necessary to show the root?"

avatar Devportobello
Devportobello - comment - 5 Jun 2015

ye right question, i dont know why this is needed too.

avatar nueckman
nueckman - comment - 5 Jun 2015

Do you want to create a PR for the other issue (wrong parameter)? In the meanwhile i will dig through the code.

avatar nueckman
nueckman - comment - 5 Jun 2015

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.

avatar Devportobello
Devportobello - comment - 8 Jun 2015

@zero-24 not sure but need to remove RTC so?

avatar wilsonge
wilsonge - comment - 8 Jun 2015

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 :)

avatar nueckman
nueckman - comment - 8 Jun 2015

FYI, still couldn't find a reason for selecting the root node.

avatar Devportobello
Devportobello - comment - 9 Jun 2015

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 ?

avatar nueckman nueckman - reference | f7d7370 - 10 Jun 15
avatar nueckman
nueckman - comment - 10 Jun 2015

Sorry for jumping in, but since this was my fault, i wanted to fix it asap.

avatar zero-24 zero-24 - change - 14 Oct 2015
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment