Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

xtype tags not working inside multifield

Avatar

Level 4
<tagfield jcr:primaryType="cq:Widget" fieldLabel="Enter Tag" name="./tags" xtype="multifield">
    <fieldConfig jcr:primaryType="cq:Widget" xtype="tags"/>
</tagfield>

 

This is a snippet from my dialog structure. I see the tag is getting saved in JCR but when opening the dialog back, it is not showing up. I can see lot of errors in browser conosle.

Let's say if my tag is ab:xyz, I see below errors in my browser console.

http://localhost:4502/etc/tags/default/a.tag.json - 404

http://localhost:4502/etc/tags/default/b.tag.json - 404

http://localhost:4502/etc/tags/default/:.tag.json - 404

http://localhost:4502/etc/tags/default/x.tag.json - 404

http://localhost:4502/etc/tags/default/y.tag.json - 404

http://localhost:4502/etc/tags/default/z.tag.json - 404

3 Replies

Avatar

Level 3

Hi prohira,

Were you able to resolve this issue? If yes, could you please share the details on fix.

Thanks.

Avatar

Level 10

This original thread is very old. However - i am still looknig into it. However looking at the documentation - i do not see a data type of tags. 

What is exactly the class you want to use in a Classic UI Dialog? 

Avatar

Level 3

Hi smacdonald2008,

I have approached in two ways

1. Used xtype='tags' similar to the widget available in OOTB page component's Basic tab(/libs/wcm/foundation/components/page/tab_basic/items/basic/items/tags). In this case, configured tag data is not stored in crx, hence on subsequent edits not being displayed against tag field.

2. Used CQ.tagging.TagInputField in custom Extjs widget. This approach worked fine in AEM 6.0 SP3 but not in AEM 6.2. Attached custom widget for reference. In this approach, not only tag field but other textfields data is not displayed when edited for 2nd time.