Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

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


Level 5

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>

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?

1 Reply


Community Advisor

@nikita24tailor did you marked your parent custom component as Container component?