Expand my Community achievements bar.

SOLVED

Slingmodel adapted from a resource that comes from an Editable Template

Avatar

Level 1

Hi,

I have a sling model with Resource as adaptables,

I am trying to use it with the data-sly-use in a component.

This component is included into the page template structure.

If the template definition has 

editable="{Boolean}true"
then the
@Deleted Account annotation to the resource is pointing to the page
/content/site/page/jcr:content/.../componentA
 
without the
editable="{Boolean}true"
then the @Deleted Account annotation is pointing to the path in the template 
/conf/site/settings/.../templateA/root/.../componentA
 
How is this supposed to work?
1 Accepted Solution

Avatar

Correct answer by
Community Advisor
2 Replies

Avatar

Correct answer by
Community Advisor

You can refer to the below link.


It has a similar kind of implementation.

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-use-a-sling-model-t...

 

Avatar

Community Advisor

@pinor21459292  -  Can you provide more details as part of this query? What are planning to achieve ?