Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rich Green 2246 posts 4008 karma points
    Sep 21, 2009 @ 22:12
    Rich Green
    0

    Limiting content to a certain number of levels?

    If I have a site structured like this, all document types are the same

    Home

    - Nav 1

    - Nav 2

    - Sub Nav 1

    - Sub Nav 2

    - Nav 3

    - Sub Nav 1

    - Sub Sub Nav 1

    Is there anyway of stopping a user creating

    - Sub Sub Sub Nav  and then

    - Sub Sub Sub Sub Nav'  

    etc. etc.

    Cheers

    Rich

     

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Sep 21, 2009 @ 22:36
    Dirk De Grave
    1

    Hi Rich,

    unfortunately not, unless you're coding an event handler that listens for new events on document, and cancel the event when level of new document exceeds a predefined level.

     

    Lots of info on event handlers and their implementation can be found on the wiki.

     

    Hope this helps.

     

    Regards,

    /Dirk

  • Rich Green 2246 posts 4008 karma points
    Sep 21, 2009 @ 22:38
    Rich Green
    0

    Thanks Dirk, that makes sense.

  • Søren Linaa 255 posts 208 karma points
    Sep 21, 2009 @ 22:52
    Søren Linaa
    1

    Well a simplier approach could be to make a documenttype for each level.

    In V4 you can make a master documenttype with all the properties and then make child documenttypes for each level that inherit from the master

    This way you can control the types of documenttypes you want the user to create and the number of levels.

     

    / cheers
    Søren

  • Rich Green 2246 posts 4008 karma points
    Sep 21, 2009 @ 22:58
    Rich Green
    0

    Thanks Søren, I'll have a look at master/child doc types, sounds like that could work.

    Cheers,

    Rich

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies