PR-5.2-dev Pending

User tests: Successful: Unsuccessful:

avatar pAnd0rASBG
pAnd0rASBG
4 Mar 2025

Pull Request for Issue #45066 .

Summary of Changes

Changed

/components/com_content/tmpl/categories/default.xml
/components/com_content/tmpl/category/blog.xml
/components/com_content/tmpl/category/list.xml

to reference the correct views rather than "article" to get the according layouts to choose from in Options

Testing Instructions

Create override for category or categories. Create an (e.g.) Category Blog menu entry; go to Options -> Choose a Layout

Actual result BEFORE applying this Pull Request

Pulldown only shows "Default" only, although e.g. Category Blog should have blog and list by the component. Additionally overrides from the template are not shown.

Expected result AFTER applying this Pull Request

Pulldown shows proper views from Component (e.g. blog & list for category blog) and overrides from template.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar pAnd0rASBG pAnd0rASBG - open - 4 Mar 2025
avatar pAnd0rASBG pAnd0rASBG - change - 4 Mar 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 4 Mar 2025
Category Front End com_content
avatar pAnd0rASBG pAnd0rASBG - change - 4 Mar 2025
Title
[5.2] Fixed view reference in com_content xml
[5.2] 45066: Fixed view references in com_content xml
avatar pAnd0rASBG pAnd0rASBG - edited - 4 Mar 2025
avatar fgsw
fgsw - comment - 5 Mar 2025

@pAnd0rASBG The first title was better (without the issue-number) because the title is used in the changelog.

avatar pAnd0rASBG pAnd0rASBG - change - 5 Mar 2025
Title
[5.2] 45066: Fixed view references in com_content xml
[5.2] Fixed view references in com_content xml
avatar pAnd0rASBG pAnd0rASBG - edited - 5 Mar 2025
avatar pAnd0rASBG
pAnd0rASBG - comment - 5 Mar 2025

@pAnd0rASBG The first title was better (without the issue-number) because the title is used in the changelog.

Ok, changed it back :)

avatar HLeithner HLeithner - change - 5 Mar 2025
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2025-03-05 10:26:39
Closed_By HLeithner
Labels Added: PR-5.2-dev
avatar HLeithner HLeithner - close - 5 Mar 2025
avatar HLeithner
HLeithner - comment - 5 Mar 2025

Joomla works as expected, your change is wrong. The 'Choose a Layout" option is for the article view (when you click on the article) and not for the category view, this is handled at the "Menu Item Type"

avatar pAnd0rASBG
pAnd0rASBG - comment - 11 Mar 2025

What for is it there then at all?
Screenshot_190

And wouldn't it be fantastic, if you could choose different overrides here?
This is highly illogical...

  • "Choose Layout" under Options is there, but has no functionality
  • Template administration gives you the possibility to create multiple overrides, but they can't be used?
  • To actually get different overrides, you would need to create multiple child templates with /html/com_content/category/default_filenames which seems to be unnecessarily complex compared to "Choose a Layout" in Options.

Add a Comment

Login with GitHub to post a comment