回答済み Controlling the Depth and Width of subsites

  • 2012年5月31日 19:07
     
     

    Is it possible to configure a web application / site collection to only allow say 4 levels of sub sites and limit each level to having say 5 subsites?

    Thanks

すべての返信

  • 2012年5月31日 20:33
     
     回答済み

    You can create an event receiver on the WebAdding event that figures out how many levels deep your site is, or how many sibling sites the new site will have, and then you can throw an error preventing the web from actually being added if certain criteria is met.

    SPWebEventReceiver.WebAdding Method 


    Blog: blog.beckybertram.com | RSS | @beckybertram | SharePoint 2010: Six-in-One

    • 回答としてマーク Jaccs 2012年6月1日 13:02
    •  
  • 2012年5月31日 20:34
     
     

    Hi

    one way is to create site/subsite usign powershell script

    In this script, before creating it, it should calculate and validate your conditions, and only if it's true, create the subsite


    Romeo Donca, Orange Romania (MCSE, MCTS, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.


  • 2012年6月1日 13:02
     
     
    Thanks for the replies I am going to try the webadding event.