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

What is the recommended way to create our own Contexthub configurations

Avatar

Avatar
Boost 1
Level 1
baoyu_li
Level 1

Like

1 like

Total Posts

8 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
baoyu_li
Level 1

Like

1 like

Total Posts

8 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
baoyu_li
Level 1

29-04-2021

Hi all,

 

From the warning below we understand we need to create our own contexthub configurations.

baoyu_li_0-1619749837224.jpeg

My question is how to best do it?

By copying nodes from under /libs/settings/cloudsettings/legacy/contexthub to /conf/[myproject]/settings/cloudsettings/[myfolder]/contexthub?

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Affirm 50
MVP
Vaibhavi
MVP

Likes

216 likes

Total Posts

181 posts

Correct Reply

61 solutions
Top badges earned
Affirm 50
Validate 1
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Affirm 50
MVP
Vaibhavi
MVP

Likes

216 likes

Total Posts

181 posts

Correct Reply

61 solutions
Top badges earned
Affirm 50
Validate 1
Ignite 1
Give Back 5
Give Back 3
View profile
Vaibhavi
MVP

29-04-2021

Hi @baoyu_li , 

Yes, you can copy the nodes and create a contexthub with mentioned path. This is one of the way to create. 

conf/[myproject]/settings/cloudsettings/[myfolder]/contexthub

 

Or you can use the tools console to create

 AEM > Tools > Sites > Context Hub

 

Steps are detailed in the below document. Please have a look. 

https://www.initialyze.com/blog/2020/02/context-hub-for-personalization-in-aem-6-5/

Answers (1)

Answers (1)

Avatar

Avatar
Give Back 100
Level 10
asutosh_jena
Level 10

Likes

560 likes

Total Posts

677 posts

Correct Reply

194 solutions
Top badges earned
Give Back 100
Boost 500
Affirm 100
Ignite 1
Establish
View profile

Avatar
Give Back 100
Level 10
asutosh_jena
Level 10

Likes

560 likes

Total Posts

677 posts

Correct Reply

194 solutions
Top badges earned
Give Back 100
Boost 500
Affirm 100
Ignite 1
Establish
View profile
asutosh_jena
Level 10

29-04-2021

Hi @baoyu_li 

 

You can enable context hub by adding the below line of code in head.html of your page component.

 

<!--/* Include Context Hub */-->
<sly data-sly-resource="${'contexthub' @ resourceType='granite/contexthub/components/contexthub'}"/>
*/-->

 

You can create the context hub configuration by navigating from Tools -> Configuration Browser -> Select the project folder -> Enable Context Hub checkbox.

This will create the basic config here /conf/project/settings/wcm/segments

Now you can add your segment nodes under the above path.

 

Please refer the document below:

https://experienceleague.adobe.com/docs/experience-manager-learn/sites/personalization/context-hub-t...

 

Thanks!