Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Tags being added into TagInputField in page properties are getting reordered when dialog is OK'ed

Avatar

Level 4

Open any page in Geometrixx: http://localhost:4602/content/geometrixx/en/company/management.html

In sidekick, go to page properties and add any tags into Tags/Keywords. I've added the 3 tags as shown in the attachment.

Hit OK. Now re-open the page properties dialog. The tags in the TagInputField has been re-ordered. It's not in Alphabetical order, or the order they were entered in the Tagging console when they were created. I do not want these to be re-ordered. They should keep the order in which they were added. CRX/DE however shows the order conserved on the jcr:content node for the page. But the dialog doesn't reflect this. Is there a way to avoid this?

See attachments.

Thanks in advance for any help.

1 Accepted Solution

Avatar

Correct answer by
Level 10

@anjali,

Thanks for screenshots, its seems to be the default behavior of AEM, even I couldn't found anything at Documentation[1] as well.

Can you share why order is required in your use case. Is there any specific requirement.

Try adding a listener to that field which will change the order as it was authored.

https://docs.adobe.com/docs/en/cq/5-6/widgets-api/index.html?class=CQ.tagging.TagInputField

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

@anjali,

Thanks for screenshots, its seems to be the default behavior of AEM, even I couldn't found anything at Documentation[1] as well.

Can you share why order is required in your use case. Is there any specific requirement.

Try adding a listener to that field which will change the order as it was authored.

https://docs.adobe.com/docs/en/cq/5-6/widgets-api/index.html?class=CQ.tagging.TagInputField