No SlingResourceType Property created for embedded components? | Community
Skip to main content
October 28, 2015
Solved

No SlingResourceType Property created for embedded components?

  • October 28, 2015
  • 2 replies
  • 526 views

If I have a component and I want to embed another component inside of it with a include statement, then there is no slingResourceType property created for the embedded node. Is there something we can do on the include call to force the embedded node to have a slingResourceType property created?

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 Lokesh_Shivalingaiah

It should essentially have the resourceType reference if its a include. Can you share the screenshot of your jcr:content and the code where you are including it ?

2 replies

edubey
Level 10
October 28, 2015

Hi Rameen, 

Let's say you include component B in A. When you create an new page, you will be able to see component A and B inside it. But there won't be any node created. for these Node structure for this page till now will be

test-page/jcr:content

Now, once you author component A and B, the node structure will be updated with authored content as well as sling:resourceType

thanks

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
October 28, 2015

It should essentially have the resourceType reference if its a include. Can you share the screenshot of your jcr:content and the code where you are including it ?