How to remove the "Personalize this page" option in WSS 3 with function code?

How to remove the "Personalize this page" option in WSS 3.0? I would like to do this in code with a function at the web application level, if possible.

+3
source share
4 answers

This permission is available in the WSS web interface:

Site settings> People and groups (in the "Users and permissions" section)> Site permissions (quick launch bar on the left)> "Settings"> "Permission levels"

. " " ( " " ).

, , , .

+2

" " , -, . , "AllowPersonalization" false -.

0

, . , -, override OnLoad():

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

However, this is usually not considered best practice because it can potentially affect the behavior of other web pages on your page.

0
source

This can be done quite easily. Open Welcome.ascx inc:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES

and under <SharePoint:MenuItemTemplate runat="server" id="ID_PersonalizePage" addVisible="False"

works fine, but will change it globally for all sites. Add the same code to any section if you want.

0
source

Source: https://habr.com/ru/post/1705051/


All Articles