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.
SOLVED

ca:Config is not publishing after a change to content

Avatar

Level 3

We have a set of ca:config models, and on some environments, when we update the ca:config in the editor, and we can see the changes on the author, we press the publish button in the editor, and it doesn't see the changes and hence doesn't publish anything, or only shows the ca editor page in the publish list.

 

How do i get it so that the ca editor will publish the configuration without me having to create a package of the /conf/xxx area and publish that

 

Topics

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @taggatmerkle ,

 

Try to introduce 2 OSGi configurations for you project:
1) io.wcm.caconfig.extensions.persistence.impl.PagePersistenceStrategy.cfg.json

{
   "enabled": true
}

2) io.wcm.caconfig.extensions.contextpath.impl.RootTemplateContextPathStrategy~yourproject.cfg.json

{
  "templatePaths": ["/conf/yourproject/settings/wcm/templates/page-content"],
  "templateMatchAllLevels":true,
  "minLevel": 1,
  "maxLevel": 5,
  "contextPathRegex": "^/content(/yourproject|/yourproject/.+)$",
  "configPathPatterns": ["/conf$1"]
}

 

Best regards,

Kostiantyn Diachenko.

View solution in original post

4 Replies

Avatar

Level 8

Are you using the latest version of CA editor -https://github.com/wcm-io/io.wcm.caconfig.editor . Also, check if you have added AEM page persistent strategy -https://wcm.io/caconfig/extensions/persistence-strategies.html#persistence_strategy_aem_page 

Avatar

Correct answer by
Community Advisor

Hi @taggatmerkle ,

 

Try to introduce 2 OSGi configurations for you project:
1) io.wcm.caconfig.extensions.persistence.impl.PagePersistenceStrategy.cfg.json

{
   "enabled": true
}

2) io.wcm.caconfig.extensions.contextpath.impl.RootTemplateContextPathStrategy~yourproject.cfg.json

{
  "templatePaths": ["/conf/yourproject/settings/wcm/templates/page-content"],
  "templateMatchAllLevels":true,
  "minLevel": 1,
  "maxLevel": 5,
  "contextPathRegex": "^/content(/yourproject|/yourproject/.+)$",
  "configPathPatterns": ["/conf$1"]
}

 

Best regards,

Kostiantyn Diachenko.

Hi Kostiantyn, 

 

I have made these changes, updated to the latest version, and after changing a sub item in a ca:Config, it still doesn't replicate it.

Avatar

Community Advisor

Hi @taggatmerkle ,

 

Try to remove CA Config and create it again. Probably it has old format with jcr:primaryType=nt:unstructured. By creating new one from the scratch, you will ensure that it has jcr:primaryType=cq:Page and you will be able to replicate it.

 

Best regards,

Kostiantyn Diachenko.