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
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
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.
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
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.
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.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies