Set values to cq:tags- multivalued via Groovy | Community
Skip to main content
Manu_Mathew_
New Participant
Sep 28, 2023 4:11 PM UTC
Solved

Set values to cq:tags- multivalued via Groovy

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.
Manu_Mathew_
Manu_Mathew_Accepted solution
New Participant
Sep 29, 2023 5:24 AM UTC

@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.

 

2 replies

EstebanBustamante
New Participant
Sep 28, 2023 9:34 PM UTC

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

Translate
Esteban Bustamante
Manu_Mathew_
Manu_Mathew_AuthorAccepted solution
New Participant
Sep 29, 2023 5:24 AM UTC

@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.

 

Translate