Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I already know how to iterate over all sites in a site collection and hide the option to create meeting workspaces.

http://pastie.org/3349098

This will work however for already created sites.

What about if I want to disable this for new created sites? How can I achieve this?

share|improve this question
    
I suppose this needs to be done at provisioning time? any idea?? –  Esteban V Feb 17 '12 at 10:23

1 Answer 1

up vote 0 down vote accepted

Note that your method will only affect existing Event lists (list type 106). If people create new lists after they will be able to create workspaces there.

If you have publishing enabled on those sites, you can remove the different workspaces templates from the list of allowed templates for subsites.

Alternatively perhaps something can be done with a feature stapler on the workspace templates.. Not sure what though :(

Edit: You can remove the Create Site right from a group of users, they will no longer be able to create workspaces (nor any other type of site...). Unfortunately they will still see the option and it will give them an error if they attempt it.

You can also try this method (it only hides the checkbox). They can still create workspaces from the site action menu.

share|improve this answer
    
that could be done by an event receiver in list adding or something? –  Esteban V Feb 17 '12 at 15:18
    
The problem is that a workspace is a type of site. People can create them from events, but they can also create them as any other site template. If you just want to block creation from events, you can try with a ItemAdding/ItemUpdating and force the "Create a workspace" field to false. –  Louis Feb 17 '12 at 18:16
    
how can I remove the allowed templates? –  Esteban V Feb 20 '12 at 8:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.