Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

How to create Contexual Content Variables(CCVAR) Custom Properties

Avatar

Level 2

We are on AEM 6.5 and using acs commons package - 5.4.0.

We are able to OOTB features of CCVAR i.e. 

  • page_properties
  • inherited_page_properties

But we want to use custom properties with custom prefix(Read a configuration/component and get values from it instead of using page properties). Tried to extend the properties as per

(https://adobe-consulting-services.github.io/acs-aem-commons/features/contextual-content-variables/i...) but could not.

 

Has anyone tried implementing ContentVariableProvider and was able to add custom properties?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

2 Replies

Avatar

Level 1

Try implementing ContentVariableProvider interface with your custom prefix.

 

Reference.. 

https://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/master/bundle/src/main/java/com/ad...

Avatar

Level 5

Hey @Lavita 

Were you able to achieve the custom CCVAR ?