Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Assets handler upon save

Avatar

Level 5

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

2 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 5

Thanks Lukasz, 

 

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