sling:resourceSupertype: which one I should use, what's the difference? | Community
Skip to main content
New Participant
May 5, 2017
Solved

sling:resourceSupertype: which one I should use, what's the difference?

  • May 5, 2017
  • 5 replies
  • 1953 views

I see there are two resourceType, one is under the libs and another is under the apps. I would like to know if I define a page, which resourceSupterType should I use and why?

/apps/core/wcm/components/page/v1/page vs. /libs/wcm/foundation/components/page

Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Feike_Visser1

The one in /apps/core is new in AEM6.3, part of the new core components.

The other location is from the foundation components, introduced in 6.0

If you are starting a new project/implementation I would use /apps/core

5 replies

BigT168Author
New Participant
May 18, 2017

I figure if we use /apps/core, the classic UI is not supported. Unless we convert all our components to touch UI, for now, we can't use /apps/core.

Thanks.

BigT168Author
New Participant
May 17, 2017

Bhargav Coca wrote...

BigT168 wrote...

I see there are two resourceType, one is under the libs and another is under the apps. I would like to know if I define a page, which resourceSupterType should I use and why?

/apps/core/wcm/components/page/v1/page vs. /libs/wcm/foundation/components/page

Thanks.

 


As someone mentioned, use /core if you have done modifications to the design, In general for new project Supertype is always a new folder under apps

 

Thank you. 

What do you mean "modifications to the design"?

BigT168Author
New Participant
May 17, 2017

Thank you both.

However, I have two more questions.

1. What's the benefit to use /apps/core, any document to specify the pros and cons between "/apps/core" and "/libs/wcm/foundation/components/page"? 

2. We already developed the apps using  "/libs/wcm/foundation/components/page", just wonder if we should modify the resourceSuperType to point to /apps/core/. If we do, what's the implication since the nodes under the page of /apps/core are a little bit different from the one under the /libs/wcm/foundation/components/page. I don't see analytics, author.html and couple other nodes under /apps/core, I do see additional socialmedia related nodes are added in /apps/core.

Thank you in advance.

bhargavc4984362
New Participant
May 8, 2017

BigT168 wrote...

I see there are two resourceType, one is under the libs and another is under the apps. I would like to know if I define a page, which resourceSupterType should I use and why?

/apps/core/wcm/components/page/v1/page vs. /libs/wcm/foundation/components/page

Thanks.

 


As someone mentioned, use /core if you have done modifications to the design, In general for new project Supertype is always a new folder under apps

Feike_Visser1
Feike_Visser1Accepted solution
Employee
May 6, 2017

The one in /apps/core is new in AEM6.3, part of the new core components.

The other location is from the foundation components, introduced in 6.0

If you are starting a new project/implementation I would use /apps/core