Menu Index value when create new document #1911
ogumemura
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thank you for all your help.
When creating a new page, the maximum value of the menu index is based on the number of contents existing in the same hierarchy, but it is assumed that the menu index starts from 0.
For the case where the menuindex does not start from 0, shouldn't it be set to the maximum value of the menu index + 1?
evolution/manager/actions/mutate_content.dynamic.php
Lines 138 to 142 in 8d72f3b
L140
$rs = $modx->db->select('max(menuindex)+1', $tbl_site_content, "parent='{$pid}'");
Beta Was this translation helpful? Give feedback.
All reactions