Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

Context Hub Traits

Avatar

Level 4

Hello All,

am trying to create triats using contexthub. Am looking for the samples in the crxde. I was not able to find any.

Have anyone implemented the triats via contexthub or if knows the path please share.

2 Replies

Avatar

Level 4

If any one is interested, just wanted to share. 

We can create the traits as he same way we did in the clientcontext.

Only we need to replace the trait value check with the js object to the ContextHub.getStore('StoreNAme').getTree() and add all the values what you were looking for.

 

If anyone needs the ed implementation using the triats, contexthub.segments and resolving the teaser, please do let me know.

I can share the details.

Avatar

Level 10

We can interact with the ContextHib via a Java API - this may help you: 

https://helpx.adobe.com/experience-manager/using/aem_contexthub_api.html

It will show you JCR path information and different ways to dynamically get information.