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"
Pageclass suffix is divided with a space like this: <div class="item-page ht-startseite" itemscope itemtype="https://schema.org/Article">
No space between the classes: <div class="item-pageht-startseite" itemscope itemtype="https://schema.org/Article">
Joomla! 3.8.5
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.
Labels |
Added:
?
|
But in this case the system should be redesigned? ;)
BTW: i know that 2 or more classes need a space between
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.
Than a better description will help?
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-02-22 19:54:11 |
Closed_By | ⇒ | hacki65 |
For your information for Joomla 4 it has been redesigned
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.