With no modules and template preview enabled all module positions should be indicated. They're not and this makes the preview completely pointless
The problem appears to originate with #35225 by @Fedik
Possibly here https://github.com/joomla/joomla-cms/pull/35225/files#r693565865
Labels |
Added:
No Code Attached Yet
|
#35225 that just fixing a cache,
The issue a bit different, since #19416 some positions rendered only if they contain any real content,
So in result you see preview only for these positions.
Possible fix, is to update if() statement a bit, example
joomla-cms/templates/cassiopeia/index.php
Lines 187 to 191 in 913f8e7
Change to something like:
if ($templatePreview || $this->countModules('banner', true))
Duplicate to #36071?
Yes, it the same.
#35225 that just fixing a cache,
Well the problem didnt exist before and it does after
Possible fix, is to update if() statement a bit, example
That "fix" is specific to cassiopeia so it doesnt solve the problem.
The issue a bit different, since #19416 some positions rendered only if they contain any real content,
Ok thanks for the hint I will take a look there as this issue really bugs me
That "fix" is specific to cassiopeia so it doesnt solve the problem.
That fix is specific for templates that use this new feature.
I wonder if old behavior still show all positions if the position does not have any module assigned in backend?
if ($this->countModules('banner'))
I wonder if old behavior still show all positions if the position does not have any module assigned in backend?
Yea, it is, it have this horror hack
joomla-cms/libraries/src/Helper/ModuleHelper.php
Lines 101 to 111 in 7978f28
&tp=1
existsWell, we can extend that hack,
Can someone try to add next code and check if it works:
$result[0]->contentRendered = true;
$result[0]->content = 'Dummy module';
hm no
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-12-08 16:45:30 |
Closed_By | ⇒ | Fedik |
Duplicate to #36071?
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36257.