No Code Attached Yet bug
avatar Scrabble96
Scrabble96
2 Jan 2022

Steps to reproduce the issue

Create a menu item of type category list
Add a page class in the 'Page Display' tab

Expected result

<div class="com-content-category category-list"> from default.php
<div class="content-category my-class">
(I'm not sure where this element comes from, it doesn't appear in the overrides, so it's not possible to edit it. I think it is generated with this code:

$this->subtemplatename = 'articles';
echo LayoutHelper::render('joomla.content.category_default', $this);
?>

in default.php

Actual result

<div class="com-content-category category-list">
<div> - where has this extra element come from?
<div class="content-categorymy-class"> - no space between classes. Hangover from J3?

System information (as much as possible)

J4.0.5

Additional comments

avatar Scrabble96 Scrabble96 - open - 2 Jan 2022
avatar joomla-cms-bot joomla-cms-bot - change - 2 Jan 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 2 Jan 2022
avatar brianteeman
brianteeman - comment - 2 Jan 2022

you are right on the extra div. Preparing a pr for the layout now

<div class="content-categorymy-class"> - no space between classes. Hangover from J3?

I've forgotten what was decided here.

avatar Scrabble96
Scrabble96 - comment - 2 Jan 2022

All the module classes no longer require you to add a preceding space (as you do in J3), so I was expecting the menu classes to be the same.

avatar brianteeman
brianteeman - comment - 2 Jan 2022

I think you may be correct on that BUT its not just here that it will need updating

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

Add a Comment

Login with GitHub to post a comment