J3 Issue ?
avatar Milglius
Milglius
25 May 2019

Steps to reproduce the issue

Set not show author in category blog layount

Expected result

Then you hide Author in Blog Article Category you Expected to show Author then you open artile in that category

Actual result

Author hidden on blog category and also hidden then you open the article

System information (as much as possible)

J 3.9.6
protostar
modern sef
php 7.2.18

Additional comments

avatar Milglius Milglius - open - 25 May 2019
avatar joomla-cms-bot joomla-cms-bot - change - 25 May 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 25 May 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 25 May 2019
Labels Added: J3 Issue
avatar franz-wohlkoenig franz-wohlkoenig - labeled - 25 May 2019
avatar Milglius Milglius - change - 25 May 2019
The description was changed
avatar Milglius Milglius - edited - 25 May 2019
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 25 May 2019

don't understand the issue, can you please give more details (maybe using screenshots)?

avatar franz-wohlkoenig franz-wohlkoenig - change - 25 May 2019
Title
Bug then you hide Author in Blog Article Category but want to show Author then you open artile
Bug then you hide Author in Blog Article Category but want to show Author then you open article
avatar franz-wohlkoenig franz-wohlkoenig - edited - 25 May 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 25 May 2019
Title
Bug then you hide Author in Blog Article Category but want to show Author then you open artile
Bug then you hide Author in Blog Article Category but want to show Author then you open article
avatar infograf768
infograf768 - comment - 25 May 2019

Tested this.

Menu item category blog "Show Author" set to "Hide"
One of the article (belonging to the category displayed by that menu item) "Show Author" set to "Show".
All works fine. The Author displays when loading the article.

But I confirm the issue if the article "Show Author" is set to "Use Global (Show)".
In that case the Author is not displayed.

This is indeed a bug imho.

avatar infograf768
infograf768 - comment - 25 May 2019

Looks like the problem comes from the fact that the Show _author parameter ="" when Using Global. This is the same as "0" for the$displayData['params']->get('show_author'), because the global setting is not taken care of in the $displayData when the article param is empty.

This is not only touching the author, but all the settings using "Use Global (Show)"

avatar infograf768
infograf768 - comment - 25 May 2019

Further look shows that the params of the blog menu item override the show global article settings when there is no specific menu item for the article as technically the active menu item is still the blog menu item.

avatar infograf768
infograf768 - comment - 25 May 2019

so, not sure anymore if this should be considered as a bug...

avatar richard67
richard67 - comment - 25 May 2019

Am also not sure if a bug or expected behavior when reading all the above.
@infograf768 Do you know who could know?

avatar richard67 richard67 - change - 25 May 2019
Title
Bug then you hide Author in Blog Article Category but want to show Author then you open article
Bug when you hide Author in Blog Article Category but want to show Author when you open single article
avatar joomla-cms-bot joomla-cms-bot - edited - 25 May 2019
avatar joomla-cms-bot joomla-cms-bot - change - 25 May 2019
Title
Bug then you hide Author in Blog Article Category but want to show Author then you open article
Bug when you hide Author in Blog Article Category but want to show Author when you open single article
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 25 May 2019

Screen Shot 2019-05-25 at 15 28 44

avatar SharkyKZ
SharkyKZ - comment - 25 May 2019

Not a bug. Articles inherit parameters of category menu item.

avatar Milglius
Milglius - comment - 25 May 2019

@SharkyKZ this is real and annoying joomla bug because I want Articles not inherit parameters (show Author) of category menu item.

avatar infograf768
infograf768 - comment - 25 May 2019

@SharkyKZ
It does inherit indeed, but only when its parameters Use Global. Therefore I do understand the questionning.
@Milglius
As I wrote, setting the article parameter to Show and not Use Global will solve your issue.

avatar Milglius
Milglius - comment - 25 May 2019

@infograf768 site has about 2000 articles, setting the article parameter manualy to each article to Show will take a lot of time

avatar Bakual
Bakual - comment - 25 May 2019

@Milglius Set it to "Use Global" (or "Show") in the menu items and use a layout override in that view where you don't display the author name. That's probably the simplest solution.

The inheritance of the parameters isn't a bug and expected behavior. The "Use Global" entry just shows the "wrong" value as it doesn't take into consideration parameters from menu items (eg category views) and other parent elements. It just looks up the component and site settings.
This could be improved of course, but it may get very complicated to look up since you will have to check multiple places and trees.

avatar franz-wohlkoenig franz-wohlkoenig - change - 26 May 2019
Status New Discussion
avatar joomla-cms-bot joomla-cms-bot - change - 27 May 2019
Closed_By alikon joomla-cms-bot
Labels
avatar joomla-cms-bot joomla-cms-bot - close - 27 May 2019
avatar alikon alikon - change - 27 May 2019
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2019-05-27 07:03:48
Closed_By alikon
Labels
avatar joomla-cms-bot
joomla-cms-bot - comment - 27 May 2019

Set to "closed" on behalf of @alikon by The JTracker Application at issues.joomla.org/joomla-cms/25005

avatar alikon
alikon - comment - 27 May 2019

expected behavior


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

avatar alikon
alikon - comment - 27 May 2019

expected behavior


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

Add a Comment

Login with GitHub to post a comment