No Code Attached Yet bug
avatar Mike92115
Mike92115
21 Nov 2022

Steps to reproduce the issue

Create a category blog menu item and under options set Author to use Article Settings. Create 2 articles and within the Article Options on those articles set one to Display Author and one not to display the Author.

Expected result

The Category blog page displays correctly, showing the Author for one article and not for the other. Then click on the Read More to view the full article for the Article set to not display Author and you will see the Author displayed.

Actual result

Both article detail pages show Author.

System information (as much as possible)

Standard Joomla 4.2.x install out of the box it does this.

Additional comments

For Author display we have it set to use Article Options as my client only wants to display Author when they write an article and not display it on press releases from the local officials. On my category blog test page https://www.clayconews.com/mike-testing the first article you will see displays my name under the title (test 3) as it should, the 2nd article Test does not display my name. All of this is good, but when I click on either of them on the detail pages Author shows on both pages. It should only display on the test3 detail page here: https://www.clayconews.com/mike-testing/20944-test-3 and not on the Test detail page https://www.clayconews.com/mike-testing/19292-test

FYI. Based upon the category blog page working correctly I think I have all the options set correctly which makes me think this is a bug.

Thank you,
Mike

avatar Mike92115 Mike92115 - open - 21 Nov 2022
avatar joomla-cms-bot joomla-cms-bot - change - 21 Nov 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 21 Nov 2022
avatar crystalenka
crystalenka - comment - 22 Nov 2022

This could be a template issue. If you switch your template to the default Cassiopeia, does the issue persist?

avatar Mike92115
Mike92115 - comment - 22 Nov 2022

Sorry I forgot to include that this also happens with the default Cassiopeia template. I have also updated my menu item from the links above so they use the Cassiopeia template so there is no question about that now.

Thank you,
Mike

avatar joomdonation
joomdonation - comment - 23 Nov 2022

Could not re-procedure the issue with fresh installation of Joomla 4.2 . For the article has Author parameter set to Hide, author is not being displayed on both category page and article page as expected.

avatar Mike92115
Mike92115 - comment - 23 Nov 2022

@joomdonation For the category blog menu item you had the Author set to use Article Settings in the options? With that set is when it does not respect the individual article option in each article.

avatar joomdonation
joomdonation - comment - 23 Nov 2022

@Mike92115 Yes. See this attached screenshot
menu_item

avatar Mike92115
Mike92115 - comment - 23 Nov 2022

@joomdonation Thank you for that, unfortunately that is not what I am seeing. I was able to re-create the issue on another site that I just created last week and had nothing done to it other then setup with only has the default Cassiopeia template. As you can see here: https://atruthinpolitics.com/mike-testing Test 2 does not show Author on the Blog page, but when you look at the article detail page here: https://atruthinpolitics.com/mike-testing/test-2 you can see the Author displayed.

Screen prints are attached.

Mike
Category_Blog_Menu_Item
Global_Article_Settings
Article_test_1_options
Article_Test_2_options

avatar joomdonation
joomdonation - comment - 24 Nov 2022

Ah, Yes, I can re-procedure the issue with your setup. My setup is a bit different (I set Author in article parameter set to Hide, not Use Global like in your case)

By looking at the code https://github.com/joomla/joomla-cms/blob/4.2-dev/components/com_content/src/Model/ArticlesModel.php#L663-L697 , seems we only handle that Use Article Settings option for certain views and layouts only, so I'm unsure if we need to handle it in article page.

For this, I need input from users with more CMS usage experience. @crystalenka Should we consider this as a bug and fix it?

avatar crystalenka
crystalenka - comment - 26 Nov 2022

@joomdonation I would personally consider this a bug for a couple of reasons:

  1. We know that the menu item will override global settings, but in this case the menu item is telling the layout to default to the article settings.
  2. The options in the menu item is what controls the article settings both in the blog view and in the article view; with the other settings, there is no distinction. (Same goes for tags, show category, etc.)
  3. There is no place in the settings cascade (that I can see) for that article where the author is set to show.

Have I missed anything?

avatar Mike92115
Mike92115 - comment - 25 Jan 2023

@joomdonation @crystalenka Hi, I wanted to follow up and make sure this will be flagged/added to the bug list so it can be addressed. Sorry I don't know how this works, if it's flagged to be addressed or stays at this status until someone starts working on it or what.

Thank you,
Mike

avatar Hackwar Hackwar - change - 22 Feb 2023
Labels Added: bug
avatar Hackwar Hackwar - labeled - 22 Feb 2023

Add a Comment

Login with GitHub to post a comment