tagspicker property in AEM cloud | Community
Skip to main content
Level 3
March 31, 2023
Solved

tagspicker property in AEM cloud

  • March 31, 2023
  • 2 replies
  • 2914 views

Hi Team,

 May I know what is the resource type for tagspicker in AEM cloud. I found the below from core components. But selectionCount property is not working to select only one value.

 

"cq/gui/components/common/tagspicker" 

 

Or any alternate approach please? 

 

Thank you!

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 Lakshmi9

Hey @jagadeesh_prakash 

 

tagfield is also working for me & it allows multiple selections by default. We can restrict it by adding this property to allow only single tag.

multiple boolean false.

 

My ask is, do we have any alternate resource type(granite) for tagspicker (other than mentioned above) in cloud & why the property  selectedCount is not working?

 

Thank you!

2 replies

Jagadeesh_Prakash
Community Advisor
Community Advisor
March 31, 2023

@lakshmi9 Below is the code that worked in AEM cloud

 

<pdp
jcr:primaryType="nt:unstructured"
sling:resourceType="/libs/cq/gui/components/coral/common/form/tagfield"
fieldLabel="Select Tag"
name="./pdpLinkUrl"
rootPath="/content/cq:tags/xxx"/>

 but i don't understand why you need a tag selector field if you want to select only 1 selection . Why not use select dropdown

Lakshmi9AuthorAccepted solution
Level 3
March 31, 2023

Hey @jagadeesh_prakash 

 

tagfield is also working for me & it allows multiple selections by default. We can restrict it by adding this property to allow only single tag.

multiple boolean false.

 

My ask is, do we have any alternate resource type(granite) for tagspicker (other than mentioned above) in cloud & why the property  selectedCount is not working?

 

Thank you!

arunpatidar
Community Advisor
Community Advisor
March 31, 2023

Can you please point out where this property is used in core component(github). It could be a custom implementation.

I am not able to find at https://github.com/adobe/aem-core-wcm-components 

 

I have also checked the /libs/cq/gui/components/common/tagspicker/render.jsp in 6.5, I can't see selectedCount property.

 

Arun Patidar
Lakshmi9Author
Level 3
March 31, 2023

Hi @arunpatidar 

I'm using cloud sdk in my local & found tagspicker in the below path.

 

/libs/foundation/components/list/cq:dialog/content/items/column/items/setTags/items/well/items/tags

 

sorry it's selectionCount. Some typo..

Ref:

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/restrict-tagpicker-field-for-single-tag-selection/td-p/417059

 

Thank you!