Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

How to keep a component unlocked through code in AEM as a Cloud Service

Avatar

Level 4

I have created a custom component in which I wanted to use the Text Core Component. In HTL, I have added the following code for the same: 

<sly data-sly-test="${wcmmode.edit}">
		<div data-sly-resource="${'Text' @resourceType='/apps/my-project/components/text', decorationTagName='div'}"></div>
</sly>

I have added my component in the template and kept it locked. Just wanted that the texy component in that should be unlocked. For that, I unlock the text component in the template. In page, for first time, the text component is editable. But once it is edited, it gets locked in the template by itself and the text which I edited shows in the template which should not happen. How can I set my text component in the custom component unlocked?

0 Replies