Hello,
When client context is included on a page with baked in custom components, those components are no longer available to edit in author mode. I see the standard cq-placeholder for the component but when mousing over the component it is not highlighted and the edit options do not display. The parsys components and OOTB AEM components work fine.
//included in body.html <sly data-sly-resource="${ @path='clientcontext', resourceType='cq/personalization/components/clientcontext'}" /> //included in content.html on our template <div data-sly-resource="${'./text' @ resourceType='project/components/content/text'}"></div> <section data-sly-resource="${'./mainParsys' @ resourceType='foundation/components/parsys'}"></section>
Solved! Go to Solution.
bfvaughn wrote...
Hello,
When client context is included on a page with baked in custom components, those components are no longer available to edit in author mode. I see the standard cq-placeholder for the component but when mousing over the component it is not highlighted and the edit options do not display. The parsys components and OOTB AEM components work fine.
//included in body.html
<sly data-sly-resource="${ @path='clientcontext', resourceType='cq/personalization/components/clientcontext'}" />
//included in content.html on our template
<div data-sly-resource="${'./text' @ resourceType='project/components/content/text'}"></div>
<section data-sly-resource="${'./mainParsys' @ resourceType='foundation/components/parsys'}"></section>
It seems like a path conflict to me, can you change <sly data-sly-resource="${ @path='clientcontext', resourceType='cq/personalization/components/clientcontext'}" /> to <div data-sly-resource="${ @path='clientcontext-new', resourceType='/libs/cq/personalization/components/clientcontext'}" data-sly-unwrap></div>
Can you try with
<div data-sly-resource="${'clientcontext' @ resourceType='cq/personalization/components/clientcontext'}" data-sly-unwrap></div>
Views
Replies
Total Likes
Same issue. In touch UI the components are not editable.
Views
Replies
Total Likes
bfvaughn wrote...
Hello,
When client context is included on a page with baked in custom components, those components are no longer available to edit in author mode. I see the standard cq-placeholder for the component but when mousing over the component it is not highlighted and the edit options do not display. The parsys components and OOTB AEM components work fine.
//included in body.html
<sly data-sly-resource="${ @path='clientcontext', resourceType='cq/personalization/components/clientcontext'}" />
//included in content.html on our template
<div data-sly-resource="${'./text' @ resourceType='project/components/content/text'}"></div>
<section data-sly-resource="${'./mainParsys' @ resourceType='foundation/components/parsys'}"></section>
It seems like a path conflict to me, can you change <sly data-sly-resource="${ @path='clientcontext', resourceType='cq/personalization/components/clientcontext'}" /> to <div data-sly-resource="${ @path='clientcontext-new', resourceType='/libs/cq/personalization/components/clientcontext'}" data-sly-unwrap></div>
No joy. It is just weird that the mouse over actions work for the parsys but not the custom components. There must be some conflict in the javascript causing the mouse over events to not trigger.
Views
Replies
Total Likes
For us it even worked if we change "sly" tag to "div" tag like below
<div data-sly-resource="${'clientcontext' @ resourceType='cq/personalization/components/clientcontext'}"></div>