Add a custom modul with a Module Class paramter like XXX under Advanced.
the output shall be :
<div class="mod-custom customXXX" ...
or better:
<div class="customXXX" ...
I can't see any benefit to add mod-custom additional
<div class="mod-custom custom" ...
the new code in J4 for mod_custom is in the default.php:
<div class="mod-custom custom" <?php if ($params->get('backgroundimage')) : ?> style="background-image:url(<?php echo $params->get('backgroundimage'); ?>)"<?php endif; ?>>
<?php echo $module->content; ?>
</div>
before in J3 it was:
<div class="custom<?php echo $moduleclass_sfx; ?>" <?php if ($params->get('backgroundimage')) : ?> style="background-image:url(<?php echo $params->get('backgroundimage'); ?>)"<?php endif; ?> >
<?php echo $module->content; ?>
</div>
This is my first issue report on github, so I hope this report is okay.
Labels |
Added:
?
|
Title |
|
So far I understand is this of Bootstrap. So $moduleclass_sfx will complete remove too?
Sorry for my limited knowledge is there a workaround with the [Module Style] filed that a User can add a variable with a override?
I know many website owner use this for highlight a content part. And cascading Div's in the modul is not the best solution IMHO.
BTW: This is my first Issue, Are there any actions on my part necessary to close this?
you can close it yourself...anyway i'll do it
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-01-12 20:06:26 |
Closed_By | ⇒ | alikon |
See PR #17447