How to see where a page/component is inheriting from? | Community
Skip to main content
Level 2
Apr 10, 2019 7:47 PM UTC
Solved

How to see where a page/component is inheriting from?

If I have a page or component that is inheriting its settings from another page or component, how do I see which node it's inheriting from? A graph-like holistic view of all page inheritance would also be useful. Does a tool like that exist?

I'm in AEM 6.4.2.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
vish.dhaliwalAccepted solution
Employee
Apr 12, 2019 8:04 PM UTC

Hello,

The parent livecopy should have a cq:LiveSyncConfig node, for example /content/we-retail/ca/en/jcr:content/cq:LiveSyncConfig. You can check the path of blueprint or source from the "cq:master" property.

Regards,

Vishu

4 replies

vish.dhaliwalAccepted solution
Employee
Apr 12, 2019 8:04 PM UTC

Hello,

The parent livecopy should have a cq:LiveSyncConfig node, for example /content/we-retail/ca/en/jcr:content/cq:LiveSyncConfig. You can check the path of blueprint or source from the "cq:master" property.

Regards,

Vishu

Translate
nydel09Author
Level 2
Apr 12, 2019 5:56 PM UTC

Hi,

I was actually referring to rollout inheritance, not the actual node type inheritance. So if I rollout a page from one path to a different path on the site, the entire page is copied under a different path in the JCR. If I'm looking at the rolled out page's nodes in CRX, are there any properties that tell me which page it's inheriting its content from?

Translate
Prince_Shivhare
New Participant
Apr 11, 2019 12:26 AM UTC


For a specific page, please go to /content and your page path.

1. click on jcr:content and find the sling:resourceType. check the path which is given in this property.

2. under the page component you will find the property "sling:resourceSuperType" which will tell you from where the page is inheriting from.

* if you don't have custom page component which is having all scripts, then probably it will inheriting from:

for Sightly: /libs/wcm/foundation/components/page

for JSP: /libs/foundation/components/page

for core components: /apps/core/wcm/components/page/v1/page

Translate
Employee
Apr 10, 2019 11:19 PM UTC

I don't believe there is a tool but you can check the following properties from crxde to check for inheritance.

sling:resourceSuperType: It is used to achieve inheritance in cq. When set, it inherits the specified component to this component.

sling:resourceType: It is a path, which locates the script to be used for rendering the content. Path used can be absolute or relative.

Translate