?
avatar hacki65
hacki65
22 Feb 2018

Steps to reproduce the issue

Set a pageclass suffix in a menu for a single article (as example) and check the output on frontend.
In this cass the class is "ht-startseite"

Expected result

Pageclass suffix is divided with a space like this: <div class="item-page ht-startseite" itemscope itemtype="https://schema.org/Article">

Actual result

No space between the classes: <div class="item-pageht-startseite" itemscope itemtype="https://schema.org/Article">

System information (as much as possible)

Joomla! 3.8.5

Additional comments

This behaviour seems to be a long time, but nobody has seen it.
Example code from "/components/com_content/views/article/tmpl/default.php" line 27:
<div class="item-page<?php echo $this->pageclass_sfx; ?>" itemscope itemtype="https://schema.org/Article">

Possible change (see space before the echo):

This bug is in many tmpl output files. At the moment only a leading space in the page class suffix field like this will help: " ht-startseite". But who knows this?

Sorry for my bad english - i hope anybody understands it.

avatar hacki65 hacki65 - open - 22 Feb 2018
avatar joomla-cms-bot joomla-cms-bot - change - 22 Feb 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 22 Feb 2018
avatar hacki65 hacki65 - change - 22 Feb 2018
The description was changed
avatar hacki65 hacki65 - edited - 22 Feb 2018
avatar mbabker
mbabker - comment - 22 Feb 2018

It's the way the system is designed. The suffix field allows you to either suffix an existing class (whatever the last one is before the param's value is printed) or add additional classes, resulting in you being able to replace a class or add additional ones.

avatar hacki65 hacki65 - change - 22 Feb 2018
The description was changed
avatar hacki65 hacki65 - edited - 22 Feb 2018
avatar hacki65
hacki65 - comment - 22 Feb 2018

But in this case the system should be redesigned? ;)

avatar hacki65
hacki65 - comment - 22 Feb 2018

BTW: i know that 2 or more classes need a space between

avatar mbabker
mbabker - comment - 22 Feb 2018

It's a long standing debate that never dies. You can do it both ways, neither way will appease everyone and both ways will result in bug reports that the behavior should be the opposite of what it is. It's just one of those opinionated features.

avatar hacki65
hacki65 - comment - 22 Feb 2018

Than a better description will help?

avatar hacki65 hacki65 - change - 22 Feb 2018
Status New Closed
Closed_Date 0000-00-00 00:00:00 2018-02-22 19:54:11
Closed_By hacki65
avatar hacki65 hacki65 - close - 22 Feb 2018
avatar brianteeman
brianteeman - comment - 22 Feb 2018

For your information for Joomla 4 it has been redesigned

Add a Comment

Login with GitHub to post a comment