We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23
    • 61 Posts
    Hey Folks,

    i’m not getting a new menuindex during duplication of documents, which will cause sorting problems within ditto.

    is this known, a bug, or a feature?



      • 21246
      • 55 Posts
      I observe the menu index value as being the same on a duplicate document as it’s source. Are you looking for the value to be something different?
        • 5689
        • 289 Posts
        I believe 012h is expecting for the duplicated document to have a new menuindex. I am curious as well whether this is a bug or a feature.

        On the one hand, a duplicate implies that all properties of the new document are the same as the original, but it’d probably be more useful for it to have a new menuindex.

        Do duplicated documents get new aliases?
          I'm learning more about MODx all the time and loving it.
          • 16278
          • 928 Posts
          I would expect it to follow the setting for Menu indexing default in Tools > Configuration > Site (it doesn’t). And duplicates have no alias, regardless of the original’s alias field.
          smiley KP
            • 5689
            • 289 Posts
            I wouldn’t necessary expect it to follow that setting. That’s for new documents, but I think you could consider duplicating documents different than creating new ones as far as the menuindex goes.
              I'm learning more about MODx all the time and loving it.
              • 23
              • 61 Posts
              Hey thanks for the info smiley

              But it seems that i have to write a plugin that will sort the menuindex from all documents within the same subtree. Since i found no other way to solve this problem.