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

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

Mark Solution

Cette conversation a été verrouillée en raison de son inactivité. Veuillez créer une nouvelle publication.

RÉSOLU

Can we use custom tag property other than cq:tags?

Avatar

Level 2

I have a requirement where we need to create multiple custom tag fields in page properties. But when using custom tag properties, page references for tags are not working. 

When we try to delete any tag which is added in custom property of a page, It is not throwing pop up of references. Where as this works in cq:tags.

 

we tried copying all custom tags to cq:tags property on page save. But this is happening as separate ajax call on form submit. Can we do this by overlaying page properties save functionality?

 

Any leads will be helpful.

 

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

Overlapping my impact other part of AEM wherever the cq:tags is used.

You can write your own service to get reference of page when you delete any tag.

Arun Patidar

AEM LinksLinkedIn

Voir la solution dans l'envoi d'origine

2 Replies

Avatar

Réponse correcte par
Community Advisor

Overlapping my impact other part of AEM wherever the cq:tags is used.

You can write your own service to get reference of page when you delete any tag.

Arun Patidar

AEM LinksLinkedIn

Avatar

Level 1

This is quite old, but for whoever has the same issue.

 

Use @PropertyMerge from acs-commons.
You can have separate properties for your tags and have all of them merged into cq:tags property.

 

<prop1
jcr:primaryType="nt:unstructured"
sling:resourceType="cq/gui/components/coral/common/form/tagfield"
...
name="./prop1"
/>
<prop2
jcr:primaryType="nt:unstructured"
sling:resourceType="cq/gui/components/coral/common/form/tagfield"
...
name="./prop2"
/>
<tagsMerge
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/hidden"
name=":prop1@PropertyMerge"
value="cq:tags"
/>
<tagsMerge2
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/hidden"
name=":prop2@PropertyMerge"
value="cq:tags"
/>
<cqTags
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/hidden"
name="./cq:tags"
/>