?
avatar AndySDH
AndySDH
6 Apr 2017

Steps to reproduce the issue

So, we know that the priority order for Articles is "Menu Options > Article Options > Global Options".

You can try with any Article Setting. Let's use "Show Category" as an example.

LEVEL 1 - Global Options: SHOW
LEVEL 2 - Article Options: HIDE
LEVEL 3 - Menu Options: USE GLOBAL

Actual result in the Menu Item

The result is that the Category is SHOWN (takes the setting from LEVEL 1)

Expected result in the Menu Item

I would expect the Category to be HIDDEN (should take the setting from LEVEL 2)

System information (as much as possible)

Joomla 3.6.5

Additional comments

It doesn't make sense for the "Use Global" setting in Menu Options to simply skip and ignore the "parent" Article Options and just go ahead and use the "grandparent" Global Options.

I understand that for Category Blog Menu Items there is an option called "Use Article Options", but I think it's redundant and unnecessary. Infact, I think this option should be removed, and instead, using the article options should be the expected behavior when selecting "Use Global".

Here's another reason why I think that:

The fact that "Use Global" skips the Article Options and goes straight to the Global Options is also incosistent with how the permission levels work for example. Their "equivalent" of "Use Global" (which is "Inherit") inherit the setting from the closest parent option, it doesn't skip them all and use the main grandparent settings.

So I believe this behavior should be the same. The "Use Global" in Menu Options should be treated (or even renamed, for consistency?) in "Inherit" and should inherit the setting from the closest parent.

This example relates to Article Options but it could apply to other components that have a similar hierarchy.

These are my 2 cents. Feel free to rip it to shreds if you feel like it, lol. I think it should at least be considered/discussed.

avatar AndySDH AndySDH - open - 6 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - change - 6 Apr 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 6 Apr 2017
avatar AndySDH AndySDH - edited - 6 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - change - 6 Apr 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 6 Apr 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 6 Apr 2017
Category com_content
avatar AndySDH AndySDH - change - 6 Apr 2017
The description was changed
avatar AndySDH AndySDH - edited - 6 Apr 2017
avatar AndySDH AndySDH - change - 6 Apr 2017
The description was changed
avatar AndySDH AndySDH - edited - 6 Apr 2017
avatar AndySDH AndySDH - change - 6 Apr 2017
The description was changed
avatar AndySDH AndySDH - edited - 6 Apr 2017
avatar AndySDH AndySDH - change - 6 Apr 2017
The description was changed
avatar AndySDH AndySDH - edited - 6 Apr 2017
avatar Bakual
Bakual - comment - 6 Apr 2017

So, we know that the priority order for Articles is "Menu Options > Article Options > Global Options".

Just to be precise, this depends on what the menu item type is.
If the active menu item is an "Single Article" pointing to that exact article, then it is as you wrote, Menu takes precedence over article.
If the menu item is something different (eg "Single Article" but for another article or a category view), then it is "Article Options > Menu Options" > Global Options". Article settings take precedence over menu settings.

avatar AndySDH
AndySDH - comment - 6 Apr 2017

Oh, well, in that case, this causes way less issues than I thought. So from problematics standpoint, we're good. For consistency, however, I guess it could still be improved anyway?
What is the purpose of "Use Article Options" if, as you say:

[quote]If the menu item is something different (eg "Single Article" but for another article or a category view), then it is "Article Options > Menu Options" > Global Options". Article settings take precedence over menu settings.[/quote]

Doesn't that make "Use Article Options" effectively redundant, since they take precedence anyway?

avatar AndySDH AndySDH - change - 6 Apr 2017
The description was changed
avatar AndySDH AndySDH - edited - 6 Apr 2017
avatar Bakual
Bakual - comment - 6 Apr 2017

Honestly, I don't know that. You would have to ask the one who implemented it ?

avatar franz-wohlkoenig franz-wohlkoenig - change - 6 Apr 2017
Status New Discussion
avatar joomla-cms-bot joomla-cms-bot - edited - 6 Apr 2017
avatar brianteeman
brianteeman - comment - 21 May 2017

Closed due to lack of interest

avatar brianteeman brianteeman - change - 21 May 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-05-21 15:24:04
Closed_By brianteeman
avatar brianteeman brianteeman - close - 21 May 2017
avatar AndySDH
AndySDH - comment - 22 May 2017

Well, I guess you can say there was lack of interest, in the sense that it's not a big deal in the grand scheme of things and I won't kill myself if it doesn't get added - it's a small tweak, but if all small tweaks were ruled out for "lack of interest" then Joomla wouldn't be as comprehensive as it is, right? #LittleThingsMatter

avatar brianteeman
brianteeman - comment - 22 May 2017

It reallys inst a small thing though as it will effect all existing sites

avatar AndySDH
AndySDH - comment - 22 May 2017

I see, that's a good point too, well, let's leave it then :)

Add a Comment

Login with GitHub to post a comment