We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 47562
    • 113 Posts
    Is there any way of limiting the number of resources that can be placed within a container?

    (If the answer is yes, the approach I'll take for the generation of certain rich nav submenus will be simplified...).

    Thanks!

    This question has been answered by markh. See the first response.

    • discuss.answer
      • 18373 ☆ A M B ☆
      • 3,141 Posts
      You might be able of putting something together with a plugin (OnBeforeDocFormSave, check the number of children in the chosen parent, change it or return an error) but there's nothing for that out of the box.
        Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

        Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
        • 47562
        • 113 Posts
        Quote from: markh at May 30, 2014, 01:13 PM
        You might be able of putting something together with a plugin (OnBeforeDocFormSave, check the number of children in the chosen parent, change it or return an error) but there's nothing for that out of the box.

        Ah, yes. Thanks Mark, that's the approach I'll take.

        Cheers!
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          If you post your final solution, this will be an excellent candidate for the Cookbook wink
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 47562
            • 113 Posts
            Quote from: sottwell at May 31, 2014, 12:04 AM
            If you post your final solution, this will be an excellent candidate for the Cookbook wink

            I will most certainly post it - first, for comments/tomatoes, then for whatever purpose it can be used for... smiley