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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Setting up a sightly based page template to use contexthub in AEM 6.2

hemantbellani-O
Level 3
Level 3

We have a sample site which has basic template and a page level component. In its head.html we have included the context hub which is not reflecting on the page. The code snippet for head.html of our sample site as shown below:

<head>

<sly data-sly-resource="${ @ path = 'contexthub' , resourceType='libs/granite/contexthub/components/contexthub'}"></sly>

<title>${head.title}</title>

</head>

As per my understanding, To enable the ContextHub features we need to include contexthub component in the head section of our page level component. I am still unable to see the contexthub component on my page. Please correct if am missing any step in implementing the same.

1 Accepted Solution
Feike_Visser1
Correct answer by
Employee
Employee

I think you are missing a / before libs in the resourceType

View solution in original post

3 Replies
smacdonald2008
Level 10
Level 10

See this similar thread - Guillaume Carlino  posted an answer: 

http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

You are correct - you would replace the use of include with HTL syntax. 

Feike_Visser1
Correct answer by
Employee
Employee

I think you are missing a / before libs in the resourceType

View solution in original post

hemantbellani-O
Level 3
Level 3

Thanks Feike Visser. It was corrected and it appears now.