Expand my Community achievements bar.

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

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

How to respect node order when querying assets via TagManager?

Avatar

Former Community Member

Hey,

we are using the TagManager to query all assets with specific tags. However, we would like the assets to be in the order that they are in the CRX so that the authors can move them in the order they want to. How can we accomplish that?

We tried a manual function that traverses the tree and keeps the order in that way but that was just too slow. In a different approach we tried to use node.getIndex() to re-sort the assets we got from the TagManager but that always returns 1 for some reason..

I saw here [1] that there's a global setting but I really just want something simple and quick for this one purpose. Any ideas?

Thanks!

Paul

 

[1] http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

1 Accepted Solution

Avatar

Correct answer by
Level 10

paro22 wrote...

Is there a way to programmatically and temporarily set "respectDocumentOrder"?

Not that I am aware off. WIth AEM6 index config is stored in repo so you can change it & reindex. Still index need to be build & not recommended.

View solution in original post

3 Replies

Avatar

Level 10

Unfortunately those are the only options.

Avatar

Former Community Member

Bummer, thought that's a basic enough thing to do since authors actually can order stuff in the UI...

Any idea why "node.getIndex()" wouldn't work? It should show us the index/order within a node, right?

Is there a way to programmatically and temporarily set "respectDocumentOrder"?

Avatar

Correct answer by
Level 10

paro22 wrote...

Is there a way to programmatically and temporarily set "respectDocumentOrder"?

Not that I am aware off. WIth AEM6 index config is stored in repo so you can change it & reindex. Still index need to be build & not recommended.