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
BedrockMission!

Learn More

View all

Sign in to view all badges

Slingmodel adapted from a resource that comes from an Editable Template

Avatar

Avatar
Level 1
pinor21459292
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
pinor21459292
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
pinor21459292
Level 1

15-03-2021

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
@Self annotation to the resource is pointing to the page
/content/site/page/jcr:content/.../componentA
 
without the
editable="{Boolean}true"
then the @Self annotation is pointing to the path in the template 
/conf/site/settings/.../templateA/root/.../componentA
 
How is this supposed to work?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

44 likes

Total Posts

45 posts

Correct Reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile

Avatar
Establish
Level 4
Rohit_Utreja
Level 4

Likes

44 likes

Total Posts

45 posts

Correct Reply

15 solutions
Top badges earned
Establish
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Rohit_Utreja
Level 4

16-03-2021

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...

 

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
MVP
Nikhil-Kumar
MVP

Likes

243 likes

Total Posts

256 posts

Correct Reply

38 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Validate 1
MVP
Nikhil-Kumar
MVP

Likes

243 likes

Total Posts

256 posts

Correct Reply

38 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile
Nikhil-Kumar
MVP

18-03-2021

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