I don't think you can see the menuindex field when editing Articles, but I think you could in NewsPublisher and you definitely could in PhpMyAdmin, though that's not very convenient.
Here's a trick you might try.
Put this snippet tag above the Wayfinder tag in the template.
[[!ArticlesMenuOrder? &docs=`7,18,15,17,10,16`]]
Add these Wayfinder properties to the Wayfinder tag: &sortBy=`menuindex` &sortOrder=`ASC`
Then, create a snippet called ArticlesMenuOrder with this code:
<?php
/* ArticlesMenuOrder snippet */
$docs = explode(',', $scriptProperties['docs']);
$i = 0;
foreach ($docs as $doc) {
$modx->getObject('Article', $doc);
if ($doc) {
$doc->set('menuindex', $i);
$doc->save();
$i++;
}
}
This is a relatively slow solution -- you'll have to see if the page-load times are acceptable. If not, here's a much faster alternative:
Remove the ArticlesMenuOrder tag from the template (but leave the properties in the Wayfinder tag). Put the ArticlesMenuOrder tag in the content of a separate Resource. When you want to set the order for a set of Articles, just edit the tag and preview the page. That will set the menuindex fields for those Articles and they should stay set until you change them.
[ed. note: BobRay last edited this post 13 years, 1 month ago.]