Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

<cq:include>

Avatar

Avatar
Validate 25
Level 3
Jai1122
Level 3

Likes

21 likes

Total Posts

127 posts

Correct Reply

2 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile

Avatar
Validate 25
Level 3
Jai1122
Level 3

Likes

21 likes

Total Posts

127 posts

Correct Reply

2 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 5
Boost 3
View profile
Jai1122
Level 3

15-10-2015

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,077 likes

Total Posts

3,112 posts

Correct Reply

1,060 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,077 likes

Total Posts

3,112 posts

Correct Reply

1,060 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
Employee

15-10-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

Answers (2)

Answers (2)

Avatar

Avatar
Boost 50
Employee
shekhardhiman
Employee

Likes

51 likes

Total Posts

688 posts

Correct Reply

330 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Boost 50
Employee
shekhardhiman
Employee

Likes

51 likes

Total Posts

688 posts

Correct Reply

330 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile
shekhardhiman
Employee

15-10-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!

Avatar

Avatar
Validate 25
MVP
bsloki
MVP

Likes

182 likes

Total Posts

1,859 posts

Correct Reply

545 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 50
Boost 5
View profile

Avatar
Validate 25
MVP
bsloki
MVP

Likes

182 likes

Total Posts

1,859 posts

Correct Reply

545 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 50
Boost 5
View profile
bsloki
MVP

15-10-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>