Create a menu item of type category list
Add a page class in the 'Page Display' tab
<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
<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?
J4.0.5
Labels |
Added:
No Code Attached Yet
|
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.
I think you may be correct on that BUT its not just here that it will need updating
Labels |
Added:
bug
|
you are right on the extra div. Preparing a pr for the layout now
I've forgotten what was decided here.