views:

1091

answers:

3

How can I remove the "Personalize this Page" option in WSS 3.0? I'd like to do it in code with a feature at the web application level if possible.

+1  A: 

It's a permission and can be accessed in the web UI of WSS:

Site Settings > People and Groups (under Users and Perms) > Site Permissions (left quick launch bar) > Settings > Permission Levels

Under each Permission Level there is a long list of permissions to include. At the bottom uncheck the items under Personal Permissions (mainly "Manage Personal Views").

I'm doing research on how to do it in code but our project requires custom user group administration so we just won't give them the option to Manage Personal Views.

dirq
Exactly what I was looking for. Thank you.
KyleFarris
A: 

Alternatively, the 'Personalize this Page' option will only be visable on pages containing web part zones that allow personalization. If you are using customised page layouts then you could set the 'AllowPersonalization' property to false on your web part zones.

edwach
A: 

Alternatively, you could enforce the shared view, thus disabling personalizations on your page. To accomplish this, do the following in any webpart, in the overriden OnLoad():

if (WebPartManager.Personalization.Scope == PersonalizationScope.User)
{
    WebPartManager.Personalization.ToggleScope();
}

However, this is not generally considered best practice because it could potentially affect the behavior of other webparts in your page.

Tudor Olariu