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

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
SOLVED

Assets handler upon save

Avatar

Level 4

hi,

 

we created assets custom metadata schema form to allow users to add additional tags on separate tab, those tags are obviously not saved to cq:tags props upon save. What would be the approach to intercept save, extract tags from custom props (wlimgtag & wlsoltag). and save it to cq:tags property so that they are later available for assets search by tags.

 

nbg62_1-1661961799926.png

 

 

 

Thanks

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @nbg62,

First of all you should rethink if you really need this kind of separation of the tags, maybe instead of having 3 different tag fileds (OOTB cq:tags and 2 custom fields) only one could be used, and distinguish tags base on namespace.

If that is not possible, and you still have to keep current setup, you can consider one of following options:

View solution in original post

0 Replies

Avatar

Correct answer by
Community Advisor

Hi @nbg62,

First of all you should rethink if you really need this kind of separation of the tags, maybe instead of having 3 different tag fileds (OOTB cq:tags and 2 custom fields) only one could be used, and distinguish tags base on namespace.

If that is not possible, and you still have to keep current setup, you can consider one of following options:

Avatar

Level 4

Thanks Lukasz, 

 

I believe last link is in the line what we're looking for. Thanks

 

 

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now