Set values to cq:tags- multivalued via Groovy | Community
Skip to main content
Manu_Mathew_
New Participant
September 28, 2023
Solved

Set values to cq:tags- multivalued via Groovy

  • September 28, 2023
  • 1 reply
  • 1036 views

Hi Guys.

Need help with groovy scripts. 

 

I have a property String[] which has tags stored in it. I want to move the tags to cq:tags property specifically.

  1.  I am able to create the cq:tags property but the data is not getting stored in cq:tags property
  2. I tried creating another property name other than cq:tags called "xyz" , and then I was able to store the values.

is property cq:tags protected? how would I store tags to cq:tags via Groovy script?

Have also tried - https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-can-i-update-multi-valued-property-using-groovy/td-p/566330

but does not work for cq:tags property. We also tried few other ways including Valuemap and Node objects. 

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 Manu_Mathew_

@estebanbustamante Thanks for the response, we found a workaround; 

As I mentioned, the thread works for property names other than cq:tags.

We found that once we disable the below, it was able to save. Thanks.

1 reply

EstebanBustamante
New Participant
September 28, 2023

Are you seeing any errors in the logs while attempting to save? The thread you shared should work

Esteban Bustamante
Manu_Mathew_
Manu_Mathew_AuthorAccepted solution
New Participant
September 29, 2023

@estebanbustamante Thanks for the response, we found a workaround; 

As I mentioned, the thread works for property names other than cq:tags.

We found that once we disable the below, it was able to save. Thanks.