No Code Attached Yet bug good first issue
avatar dozentis
dozentis
15 Feb 2022

Steps to reproduce the issue

  • open a menu item, type like list of categories
  • move to tab Page Display
  • type in your Page Class and save

Actual result in HTML source code of page

<div class="categories-listyourcssclassname list-group">

Additional comments

Page Class is a Suffix to the class categories-list (like in module/advanced)

My recommendation

Please change label of Page Class in Menus: Edit Item to Page Class Suffix

avatar dozentis dozentis - open - 15 Feb 2022
avatar dozentis dozentis - change - 15 Feb 2022
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 15 Feb 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 15 Feb 2022
avatar chmst
chmst - comment - 15 Feb 2022

Which Joomla version?

avatar chmst chmst - change - 15 Feb 2022
Labels Added: Information Required
avatar chmst chmst - labeled - 15 Feb 2022
avatar brianteeman
brianteeman - comment - 15 Feb 2022

It's a bug!

It was changed to be a page class and not a suffix iirc and in the body tag its a page class
eg <body class="site com_content wrapper-static view-category no-layout no-task itemid-119 banana has-sidebar-right">

But on the category list it is also being used (not sure if it is supposed to be as its not in category blog)
eg

<div class="com-content-category category-list">
<div class="content-categorybanana">
<h1>Category List</h1>
avatar brianteeman
brianteeman - comment - 15 Feb 2022

The "bug" is in C:\htdocs\joomla-cms\layouts\joomla\content\category_default.php

avatar chmst chmst - change - 15 Feb 2022
Labels Added: bug good first issue
Removed: Information Required
avatar chmst chmst - labeled - 15 Feb 2022
avatar chmst chmst - labeled - 15 Feb 2022
avatar chmst chmst - unlabeled - 15 Feb 2022
avatar dozentis
dozentis - comment - 15 Feb 2022

Thanks for reply.
So I see it has already been revised with Joomla 4 (3.x?), so we no longer have a suffix specification like formely in Modules/Advances?

I've checked some menu types.

Category blog -> issue
<div class="blogmycssclass">

single article -> no issue
<div class="article-details mycssclass" itemscope itemtype="https://schema.org/Article">

Category list -> issue
<div class="category-listmycssclass">

List all tags -> issue
<div class="tag-categorymycssclass">

I'll check some more on my demo site


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37047.
avatar chmst
chmst - comment - 15 Feb 2022

Thanks for reporting! Yes it should not longer be a suffix but a class.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37047.

avatar dozentis
dozentis - comment - 15 Feb 2022

List all Tags -> issue
<div class="tag-categorymycssclass">

In all users menu items like login e.g. issue
<div class="loginmycssclass">

also all contact menu items issue
<div class="contact-categorymycssclass">

I think nearly all layout files must be updated


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37047.

avatar brianteeman
brianteeman - comment - 15 Feb 2022

@dozentis can you confirm which version of joomla you are using as I only found a few and not some of the ones you listed in joomla 4

avatar dozentis
dozentis - comment - 15 Feb 2022

@dozentis can you confirm which version of joomla you are using as I only found a few and not some of the ones you listed in joomla 4

I was using 4.0.6 and updated to V4.1 and can confirm this, because I've checked every menu tpye today. Unfortunately the demo website is on localhost (Im lecture for joomla and wordpress) but tomorrow i can upload it if you need further investigations

avatar brianteeman
brianteeman - comment - 15 Feb 2022

I did a pull request for all the instances I could find. #37055 but I can not find anything for category blog

avatar dozentis
dozentis - comment - 16 Feb 2022

I did a pull request for all the instances I could find. #37055 but I can not find anything for category blog

jom1-inspektor-front

jom2-menuitemtype

jom3-pagedisplay

avatar RickR2H
RickR2H - comment - 16 Feb 2022

@dozentis are you using the Cassiopeia template? Looks like the view is generated by SP page builder.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37047.

avatar dozentis
dozentis - comment - 16 Feb 2022

@dozentis are you using the Cassiopeia template? Looks like the view is generated by SP page builder.

The page-builder wasn't used for this page (but now it's deactivated), only Helix Ultimate Template and I've switched back to Cassiopeia:

search mycssclass on category-blog page

Cassiopeia - one result: looks good

<body class="site com_content wrapper-static view-category layout-blog no-task itemid-111 mycssclass">

Helix Ultimate template - two results ?

<body class="site helix-ultimate hu com-content view-category layout-blog task-none itemid-111 de-de ltr sticky-header layout-boxed offcanvas-init offcanvs-position-right mycssclass">

and (surprise )

<main id="sp-component" class="col-lg-8 ">
.....
  | <div class="blogmycssclass">
  | <div class="page-header">
  | <h1>Immobilien ? Anzeigen - privat und gewerblich✔</h1>

Now I see that I was in wrong line in screenshot/inspector. Didn't see before, that mycssclass was used twice in #body and #main (sorry for confusing you guys, but that was surprising, didn't expect the class on both elements)
But anyway, I didn't expect too that the helix template changes code although I wasn't using their own page-title (they add a tab called page-title, see menu screenshot, but it's empty there)

avatar RickR2H
RickR2H - comment - 16 Feb 2022

@dozentis as long as the problem is not core Joomla or Cassiopeia template layout we can close the issue here. Agreed?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37047.

avatar RickR2H RickR2H - close - 16 Feb 2022
avatar RickR2H
RickR2H - comment - 16 Feb 2022

Closing this issue as this is not a Joomla core problem.

avatar RickR2H RickR2H - change - 16 Feb 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-02-16 21:37:44
Closed_By RickR2H

Add a Comment

Login with GitHub to post a comment