Create a module in Cassiopeia of the type 'top-b' (or 'bottom-b'; this issue applies to both modules)
Set the title to 'Show'
Visible title
Joomla 4 Alpha 11 full package nightly from 30.08.2019
Index.php shows the code for this module is exactly the same as for the adjacent 'top-a' except for the style, which is 'card', rather than 'cardGrey':
<?php if ($this->countModules('top-a')) : ?>
<div class="grid-child container-top-a">
<jdoc:include type="modules" name="top-a" style="cardGrey" />
</div>
<?php endif; ?>
<?php if ($this->countModules('top-b')) : ?>
<div class="grid-child container-top-b">
<jdoc:include type="modules" name="top-b" style="card" />
</div>
<?php endif; ?>
The only difference being that top-a has a grey background. (I'm not sure where "cardGrey" comes from as it is defined as "card-grey" in both the minified and unminified template.css files.)
There are two Chromes for modules which, under the new system, are in html -> layouts -> chromes cardGrey.php and default.php, which differ only that cardGrey.php includes the class card card-grey
and the default just `card
There does not appear to be any instruction to say - "do not display the title".
If there is, where is it and how can it be overridden?
Labels |
Added:
?
|
Title |
|
Labels |
Added:
J4 Issue
|
Status | New | ⇒ | Discussion |
I see several other chromes that are not defined either eg xhtml
xhtml has been removed in favor of html5 chrome. Sorry, I don't find the pr at the moment.
yes I know but the template has not been updated
Ah, OK. Thanks for clarification.
Of the current Cassiopeia chromes, both default.php and cardGrey.php, I've noticed some missing code in line 26:
Current code:
<div class="card-body">
Proposed code to allow styling of body section in modules in different positions, particularly for custom modules, but it may well apply to other types, too:
<div class="<?php echo $modulePos; ?> card-body">
I'm happy to raise a PR for this.
I'm closing the PR but leaving this issue open because, as @brianteeman said earlier, several chromes have not been defined. Consequently, I've changed the title to reflect this.
Title |
|
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-09-25 11:50:41 |
Closed_By | ⇒ | alikon |
ok let's close it then
As for the "card" chrome that looks to me like you found a bug as I see several other chromes that are not defined either eg xhtml