Set not show author in category blog layount
Then you hide Author in Blog Article Category you Expected to show Author then you open artile in that category
Author hidden on blog category and also hidden then you open the article
J 3.9.6
protostar
modern sef
php 7.2.18
Labels |
Added:
?
|
Labels |
Added:
J3 Issue
|
Title |
|
Title |
|
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.
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)"
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.
so, not sure anymore if this should be considered as a bug...
Am also not sure if a bug or expected behavior when reading all the above.
@infograf768 Do you know who could know?
Title |
|
Title |
|
Not a bug. Articles inherit parameters of category menu item.
@infograf768 site has about 2000 articles, setting the article parameter manualy to each article to Show will take a lot of time
@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.
Status | New | ⇒ | Discussion |
Closed_By | alikon | ⇒ | joomla-cms-bot |
Labels |
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-05-27 07:03:48 |
Closed_By | ⇒ | alikon | |
Labels |
Set to "closed" on behalf of @alikon by The JTracker Application at issues.joomla.org/joomla-cms/25005
expected behavior
expected behavior
don't understand the issue, can you please give more details (maybe using screenshots)?