This conversation has been locked due to inactivity. Please create a new post.
This conversation has been locked due to inactivity. Please create a new post.
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
Solved! Go to Solution.
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
Unfortunately those are the only options.
Views
Replies
Total Likes
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"?
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies