What is the official way for the document menuindex to work. I have always used the "Doc Manager" to sort my documents and after sorting it resets the first document menuindex to 1. However, when you crete a new document with Modx it always starts at 0
Here is an example. A list of new documents created - the menuindex value is in square brackets.
[sub folder]
doc D [0]
doc B [1]
doc A [2]
doc D [3]
after using Modules > Doc Manager > Sort Menu Items
[sub folder]
doc A [1]
doc B [2]
doc C [3]
doc D [4]
If i now add a new document to the sorted doc folder it will be assigned a menuindex of 4.
[sub folder]
doc A [1]
doc B [2]
doc C [3]
doc D [4]
new doc [4]
If i move or copy a document to another section it always keeps the same menu index. I would expect Modx to automatically update the menuindex of documents if they are moved or copied but maybe this is the default behavior.
So who is the culprit? Modx or Doc Manager? I am already having some issue with Doc Manager and updating TVs as mentioned in
this post so i am guessing this might be it.
My setup is as follows
Modx 0.9.6.3
MySQL 5.1.34
Apache 2.2.8
PHP 5.2.4
Is there an easier method for updating all menuindexes? Something like a "Publish All" option? I use the menuindex in one of my snippets and its tedious to have to update the sort order after any editing or creating.