Assets handler upon save | Community
Skip to main content
Level 4
August 31, 2022
Solved

Assets handler upon save

  • August 31, 2022
  • 1 reply
  • 1073 views

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.

 

 

 

 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by lukasz-m

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:

1 reply

lukasz-m
Community Advisor
lukasz-mCommunity AdvisorAccepted solution
Community Advisor
August 31, 2022

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:

nbg62Author
Level 4
September 1, 2022

Thanks Lukasz, 

 

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