Expand my Community achievements bar.

SOLVED

tagspicker property in AEM cloud

Avatar

Level 4

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!

1 Accepted Solution

Avatar

Correct answer by
Level 4

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!

View solution in original post

5 Replies

Avatar

Community Advisor

@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

Avatar

Correct answer by
Level 4

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!

Avatar

Community Advisor

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

Avatar

Level 4

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

 

Thank you!