Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

<cq:include>

Avatar

Level 5

What is the difference between 

<cq:include path="../metadata" resourceType="social/blog/components/metadata" />

and

<cq:include path="metadata" resourceType="social/blog/components/metadata" />

Can someone please help. The docs are not satisfying

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi,

in the first case the node metadata located below the parent node is used (so "metadata" is a sibling to the current node), in the second case the node "metadata" below the current node is (a childnode). Depends on your node structure, if there are such nodes.

kind regards,
Jörg

View solution in original post

3 Replies

Avatar

Level 10

Refer [1] to know the purpose of each property of a tag. Hope this helps !

[1] https://docs.adobe.com/docs/en/cq/5-6/howto/taglib.html#<cq:include>

Avatar

Level 10

Hi there,

Thanks for reaching out to Adobe Community.

You may want to look at the below link to know all cq:include tags:

https://helpx.adobe.com/experience-manager/kb/CQIncludes.html

Thanks!

Avatar

Correct answer by
Employee Advisor

Hi,

in the first case the node metadata located below the parent node is used (so "metadata" is a sibling to the current node), in the second case the node "metadata" below the current node is (a childnode). Depends on your node structure, if there are such nodes.

kind regards,
Jörg