Try to add the module class suffix to the modules (backend and frontend).
Can add the module class suffix.
Unable to add the module class suffix.
Joomla 4
Missing of:
$moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'), ENT_COMPAT, 'UTF-8');
class="mod-custom custom<?php echo $moduleclass_sfx; ?>
Beside that, as far as I remember in J4 the module class suffix is not a suffix anymore which is appended to the class, it is a module class which is added to the class, separated with a space.
correct ... the name of the variable needs to be changed.
A closer look, shows that the issue occurs in the position menu and not in the position sitebar-right for example.
As already stated by @Fedik the suffix is applied by the chrome.
If you look at the template you will see that the menu position has no chrome
<jdoc:include type="modules" name="menu" style="none" />
So thats the explanation and the solution for you would be to change the style="none" to style="html5" in the templates index.php
OR
In the module settings change the style from inherited to html5 (or any other chrome that uses the suffux)
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-07-30 11:18:03 |
Closed_By | ⇒ | sandewt |
Thanks all
Just want to repeat that this expected behaviour is for me not a good behaviour and I have brought this up before. From my perspective every default setting in a module should function in every module chrome.
Just want to repeat that this expected behaviour is for me not a good behaviour...
Indeed, inconsistent behavior creates confusion. In joomla 3 the top position was included.
In joomla 3 it is duplicated if module chrome is used,
that makes another issue
It exists in module chrome
/layouts/chromes
joomla-cms/layouts/chromes/html5.php
Line 26 in d55e7fa