ca:Config is not publishing after a change to content | Community
Skip to main content
Level 2
April 2, 2025
Solved

ca:Config is not publishing after a change to content

  • April 2, 2025
  • 2 replies
  • 3790 views

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

 

Best answer by konstantyn_diachenko

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.

2 replies

narendiran_ravi
Level 6
April 2, 2025

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 

konstantyn_diachenko
Community Advisor
konstantyn_diachenkoCommunity AdvisorAccepted solution
Community Advisor
April 2, 2025

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.

Kostiantyn Diachenko, Community Advisor, Certified Senior AEM Developer, creator of free AEM VLT Tool, maintainer of AEM Tools plugin.
Level 2
April 17, 2025

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.

konstantyn_diachenko
Community Advisor
Community Advisor
April 17, 2025

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.

Kostiantyn Diachenko, Community Advisor, Certified Senior AEM Developer, creator of free AEM VLT Tool, maintainer of AEM Tools plugin.