Oscar Scholten pushed to branch master at cms-community / hippo-project-archetype
Commits: 8acb1d49 by Oscar Scholten at 2017-08-01T12:02:31+02:00 ARCHE-550 Add AutoExport settings for residual node categories - added patterns for injecting and overriding residual child node categories - also changed the workspace/channel node to use .meta:residual-child-node-category rather than .meta:category as all other channel nodes will use that pattern - changed the configuration for autoexport:enabled and autoexport:modules to normal properties rather than overrides, as they only need to set the values - - - - - 2 changed files: - src/main/resources/archetype-resources/repository-data/config/src/main/resources/hcm-config/configuration/modules/autoexport-module.yaml - src/main/resources/archetype-resources/repository-data/config/src/main/resources/hcm-config/hst/configurations/__rootArtifactId__/workspace/channel.yaml Changes: ===================================== src/main/resources/archetype-resources/repository-data/config/src/main/resources/hcm-config/configuration/modules/autoexport-module.yaml ===================================== --- a/src/main/resources/archetype-resources/repository-data/config/src/main/resources/hcm-config/configuration/modules/autoexport-module.yaml +++ b/src/main/resources/archetype-resources/repository-data/config/src/main/resources/hcm-config/configuration/modules/autoexport-module.yaml @@ -2,11 +2,32 @@ definitions: config: /hippo:configuration/hippo:modules/autoexport: /hippo:moduleconfig: - autoexport:enabled: - operation: override - type: boolean - value: true - autoexport:modules: - operation: override - type: string - value: ['repository-data/config:/'] + autoexport:enabled: true + autoexport:modules: ['repository-data/config:/'] + autoexport:injectresidualchildnodecategory: [ + '**/hst:workspace/**[hst:containercomponent]: content', + '**/hst:workspace/**[hst:sitemenu]: content', + '**/hst:workspace/hst:abstractpages: content', + '**/hst:workspace/hst:channel: content', + '**/hst:workspace/hst:components: content', + '**/hst:workspace/hst:pages: content', + '**/hst:workspace/hst:sitemap: content', + '**/hst:workspace/hst:templates: content', + '/hst:hst/hst:hosts/**[hst:virtualhostgroup]: content', + '/hst:hst/hst:hosts/**[hst:virtualhost]: content', + '/hst:hst/hst:hosts/**[hst:mount]: content'] + autoexport:overrideresidualchildnodecategory: [ + '/hst:hst/hst:configurations: config', + '/hst:hst/hst:hosts: config', + '/hst:hst/hst:hosts/*: config', + '/hst:hst/hst:hosts/*/*: config', + '/hst:hst/hst:hosts/*/*/*: config', + '/hst:hst/hst:hosts/*/*/*/*: config', + '/hst:hst/hst:hosts/*/*/*/*/*: config', + '/hst:hst/hst:hosts/*/*/*/*/*/*: config', + '/hst:hst/hst:hosts/*/*/*/*/*/*/*: config', + '/hst:hst/hst:hosts/*/*/*/*/*/*/*/*: config', + '/hst:hst/hst:hosts/*/*/*/*/*/*/*/*/*: config', + '/hst:hst/hst:hosts/*/*/*/*/*/*/*/*/*/*: config', + '/hst:hst/hst:hosts/*/*/*/*/*/*/*/*/*/*/*: config', + '/hst:hst/hst:hosts/*/*/*/*/*/*/*/*/*/*/*/*: config'] ===================================== src/main/resources/archetype-resources/repository-data/config/src/main/resources/hcm-config/hst/configurations/__rootArtifactId__/workspace/channel.yaml ===================================== --- a/src/main/resources/archetype-resources/repository-data/config/src/main/resources/hcm-config/hst/configurations/__rootArtifactId__/workspace/channel.yaml +++ b/src/main/resources/archetype-resources/repository-data/config/src/main/resources/hcm-config/hst/configurations/__rootArtifactId__/workspace/channel.yaml @@ -6,8 +6,7 @@ definitions: config: /hst:hst/hst:configurations/${rootArtifactId.replace($hyphen,$empty)}/hst:workspace/hst:channel: + .meta:residual-child-node-category: content jcr:primaryType: hst:channel hst:name: ${projectName} hst:type: website - /hst:channelinfo: - .meta:category: content View it on GitLab: https://code.onehippo.org/cms-community/hippo-project-archetype/commit/8acb1d49eb4edd42759f08cbcf106707188ec1e7 --- View it on GitLab: https://code.onehippo.org/cms-community/hippo-project-archetype/commit/8acb1d49eb4edd42759f08cbcf106707188ec1e7 You're receiving this email because of your account on code.onehippo.org.
_______________________________________________ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn