Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Package metadata nodes under a hierarchy

Avatar

Level 3

We are trying to create a package of all metadata nodes under a specific hierarchy.

Is this possible? Tried the following:

 

We have a hierarchy: 

/content/dam/projectname/master/video/

Want to package all metadata nodes under this hierarchy, for example:
/content/dam/projectname/master/video/(A...Z)/example_video.mov/jcr:content/metadata

 

Filter:
/content/dam/projectname/master/video

Include:
/content/dam/projectname/master/video/[^/]+/[^/]+/jcr:content/metadata

 

Result:
Building package
A META-INF
A META-INF/vault
A META-INF/vault/config.xml
A META-INF/vault/filter.xml
A META-INF/vault/nodetypes.cnd
A META-INF/vault/properties.xml
A /.content.xml
A /content
A /content/.content.xml
A /content/dam
A /content/dam/.content.xml
A /content/dam/projectname
A /content/dam/projectname/.content.xml
A /content/dam/projectname/master
A /content/dam/projectname/master/.content.xml
A /content/dam/projectname/master/video
A /content/dam/projectname/master/video/.content.xml
- Aggregation status: 5 of 3 prepared, 4 collected
A META-INF/vault/definition/.content.xml

1 Accepted Solution

Avatar

Correct answer by
Level 10

You can just add the following exclude rule for updating only the metadata - 

exclude    /content/dam/projectname/master/video(.*)/jcr:content/[ar].*

View solution in original post

4 Replies

Avatar

Level 10

I packaged up DAM content and when i deployed - all content - including MetaData is deployed. I used AEM 6.1:

[img]PackageMetadata.png[/img]

Avatar

Level 10

When you deploy the package  - the metadata nodes are missing? 

Avatar

Level 3

smacdonald2008 wrote...

I packaged up DAM content and when i deployed - all content - including MetaData is deployed. I used AEM 6.1:

 

Sorry, I should have mentioned - I want to exclude everything else under the filter besides the metadata nodes. 

For example, I don't want to package the renditions folder.

Avatar

Correct answer by
Level 10

You can just add the following exclude rule for updating only the metadata - 

exclude    /content/dam/projectname/master/video(.*)/jcr:content/[ar].*