Open knennigtri opened 3 years ago
The issue is caused in container.html#L17 where the property layout
is literally compared to the constant name RESPONSIVE_GRID
instead of constant value responsiveGrid
So, a quick solution is changing it as follows
${container.layout == 'responsiveGrid'}
or to fix the constant reference
The compare is done correctly (see https://github.com/adobe/htl-spec/blob/master/SPECIFICATION.md#1142-comparison-operators, specifically Java Enum comparison
). The issue you see is actually related to the container adding a wrapper element on top of the responsive grid, which causes the editor to not pick up placeholders for allowed components. There's a fix in the product for this (internal references CQ-4305421, CQ-4305870) which would need to be added to the 6.5 service pack.
We'll track the backport for the fix under NPR-35565.
@knennigtri , when trying to validate the aforementioned backport we saw we cannot reproduce the issue with AEM 6.5.7.0 and Core Components 2.13+. The screenshots show a different (older) version of the core components (at least the library). Could you check and confirm the steps?
We have the same issue using the latest Core Components (2.14.0).
This happens regardless of the setting layoutMode
(i.e., the behavior is the same for "SIMPLE" and "RESPONSIVE").
@dhardtke , what version of AEM are you on? Is it working with different version of Core Components and failing with 2.14.0?
@vladbailescu I can reproduce it using AEM 6.5.7.0 and https://github.com/adobe/aem-guides-wknd/releases/tag/aem-guides-wknd-0.2.0 with the latest Core Components (2.15.0):
@vladbailescu Is this issue fixed in the latest core components version? If not, can we expect this issue to be fixed in any of the upcoming core components releases which works with AEM 6.5.x also?
For us the issue is fixed after installing AEM 6.5 SP 8 (per Release Notes, see https://experienceleague.adobe.com/docs/experience-manager-65/release-notes/service-pack/previous-hotfixes-featurepacks.html?lang=en):
An unlocked responsive container does not display allowed components (NPR-35565).
Might be related to #1151
Bug Report
Current Behavior
Note: this exact same issue can be achieved by using the policy as well:
Expected behavior/code
Whether layout=simple, layout=respinsivegrid, or layout is not set, it should always show the list of allowed components of the Container component
Environment
Possible Solution I've tested with AEM 6.5.4, 6.5.7, latest CS build, wknd 0.0.6, core cmps 2.12.2, and core cmps 2.13. The only time this issue comes up is on AEM 6.5.x, the site and core component version doesn't seem to matter.
Additional context / Screenshots layout property applied via a dialog in the Template Editor layout property applied via a policy in the Template Editor