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

Avatar

Avatar

hemantbellani-O

Avatar

hemantbellani-O

hemantbellani-O

15-02-2017

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.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Feike_Visser1

Employee

Avatar

Feike_Visser1

Employee

Feike_Visser1
Employee

15-02-2017

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

Answers (2)

Answers (2)

Avatar

Avatar

hemantbellani-O

Avatar

hemantbellani-O

hemantbellani-O

22-02-2017

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

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

15-02-2017

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.