<cq:include> | Community
Skip to main content
Jai1122
Level 4
October 16, 2015
Solved

<cq:include>

  • October 16, 2015
  • 3 replies
  • 1046 views

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

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 joerghoh

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

3 replies

Lokesh_Shivalingaiah
Level 10
October 16, 2015

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>

WhoaShekhar
Level 10
October 16, 2015

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!

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

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