Sunday, September 7, 2014

Tagging AEM content in bulk

If you've ever played around with the Bulk Editor in AEM you may have stumbled onto the fact that it doesn't work very well on multi-valued attributes. Instead of creating multiple values it creates a single value.

Perhaps I'm doing it wrong but I ended up writing a shell script to generate cURL commands that tag the content paths instead of trying to make the tool work with arrays.

I was goofing around with nodejs the other day and decided to port this shell script to JavaScript.  Haven't had a chance to try it out yet but if you're interested you can check it out here:

https://gist.github.com/teddscofield/8a0d5bbf5af479101a98

So if you find yourself in a situation where you have a great many pages, DAM assets, etc. that you need to tag a script like this can come in handy.  Use the bulk tool to get a spreadsheet of content paths and their tags, edit it to reflect the tagging structure you wish to see and then use a script like this to get it into the JCR.

HTH!

No comments:

Post a Comment