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.
Solved! Go to Solution.
I think you are missing a / before libs in the resourceType
See this similar thread - Guillaume Carlino posted an answer:
You are correct - you would replace the use of include with HTL syntax.
Views
Replies
Total Likes
I think you are missing a / before libs in the resourceType
Thanks Feike Visser. It was corrected and it appears now.
Views
Replies
Total Likes
Views
Likes
Replies