Expand my Community achievements bar.

SOLVED

Set values to cq:tags- multivalued via Groovy

Avatar

Community Advisor

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

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

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

1223281_pastedImage_0.png

View solution in original post

2 Replies

Avatar

Community Advisor

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



Esteban Bustamante

Avatar

Correct answer by
Community Advisor

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

1223281_pastedImage_0.png