Développer ma barre des réalisations de la Communauté.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
RÉSOLU

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. 

Sujets

Les sujets facilitent la catégorisation du contenu de la Communauté et vous aident à retrouver le contenu le plus pertinent.

1 solution acceptée

Avatar

Réponse correcte par
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

Voir la solution dans l'envoi d'origine

2 Replies

Avatar

Community Advisor and Adobe Champion

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



Esteban Bustamante

Avatar

Réponse correcte par
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