Кастомизация Custom Actions Location

Привет всем. Сегодня хочу рассказать как можно кастомизировать любое меню в Sharepoint 2010. То есть я покажу как можно создавать свои пункты меню в любом месте Sharepoint 2010.

Итак начнём.

1. Добавление пункта меню в контекстное меню библиотеки документов.

image

<CustomAction

Id="CustomWareCustomActions.EditControlBlock"

RegistrationType="List"

RegistrationId="101"

Location="EditControlBlock"

Sequence="1000"

Title="CUSTOMWARE - EditControlBlock">

<UrlAction

Url="https://www.customware.net"/>

</CustomAction>

 

2. Добавление пункта меню в диалоговое окно просмотра элемента библиотеки документов.

image

<CustomAction

Id="CustomWareCustomActions.DisplayFormToolbar"

RegistrationType="List"

RegistrationId="101"

Location="DisplayFormToolbar"

Sequence="1000"

Title="CUSTOMWARE - DisplayFormToolbar">

<UrlAction Url="https://www.customware.net"/>

</CustomAction>

 

3. Добавление пункта меню в диалоговое окно редактирования элемента библиотеки документов

<CustomAction

Id="CustomWareCustomActions.EditFormToolbar"

RegistrationType="List"

RegistrationId="101"

Location="EditFormToolbar"

Sequence="1000"

Title="CUSTOMWARE - EditFormToolbar">

<UrlAction Url="https://www.customware.net"/>

</CustomAction>

 

4. Добавление пункта меню в диалоговое окно создание нового элемента библиотеки документов

<CustomAction

Id="CustomWareCustomActions.NewFormToolbar"

RegistrationType="List"

RegistrationId="101"

Location="NewFormToolbar"

Sequence="1000"

Title="CUSTOMWARE - NewFormToolbar">

<UrlAction Url="https://www.customware.net"/>

</CustomAction>

 

5. Добавление пункта меню в представление списка элементов библиотеки документов

<CustomAction

Id="CustomWareCustomActions.ViewToolbar"

RegistrationType="List"

RegistrationId="101"

Location="ViewToolbar"

Sequence="1000"

Title="CUSTOMWARE - ViewToolbar">

<UrlAction Url="https://www.customware.net/success"/>

</CustomAction>

 

6. Создание пункта меню в меню Действий списка Опрос

<CustomAction

Id="CustomWareCustomActions.Microsoft.SharePoint.

StandardMenu.SurveyList.ActionsMenuForSurvey"

RegistrationType="List"

RegistrationId="102"

GroupId="ActionsMenuForSurvey"

Location="Microsoft.SharePoint.StandardMenu"

Sequence="1000"

Title="CUSTOMWARE - Microsoft.SharePoint.StandardMenu :

ActionsMenuForSurvey">

<UrlAction Url="https://www.customware.net/success"/>

</CustomAction>

 

7. Создание пункта меню в меню Параметры списка Опрос

<CustomAction

Id="CustomWareCustomActions.Microsoft.SharePoint.

StandardMenu.SurveyList.SettingsMenuForSurvey"

RegistrationType="List"

RegistrationId="102"

GroupId="SettingsMenuForSurvey"

Location="Microsoft.SharePoint.StandardMenu"

Sequence="1000"

Title="CUSTOMWARE - Microsoft.SharePoint.StandardMenu : SettingsMenuForSurvey">

<UrlAction Url="https://www.customware.net/success"/>

</CustomAction>

 

8. Добавление пункта меню в меню профиля пользователя

<CustomAction

Id="CustomWareCustomActions.Microsoft.SharePoint.

StandardMenu.PersonalActions"

GroupId="PersonalActions"

Location="Microsoft.SharePoint.StandardMenu"

Sequence="1000"

Title="CUSTOMWARE - Microsoft.SharePoint.StandardMenu : PersonalActions">

<UrlAction Url="https://www.customware.net"/>

</CustomAction>

 

9. Добавление пункта меню в список рабочих процессов

<CustomAction

Id="CustomWareCustomActions.Microsoft.SharePoint.

Workflows.LeftNavBarLinks"

GroupId="LeftNavBarLinks"

Location="Microsoft.SharePoint.Workflows"

Sequence="1000"

Title="CUSTOMWARE - Microsoft.SharePoint.Workflows : LeftNavBarLinks">

<UrlAction Url="https://www.customware.net"/>

</CustomAction>

 

10. Добавление пункта меню в меню Создание списка Пользователи и Группы

<CustomAction

Id="Microsoft.SharePoint.GroupsPage.NewMenu"

GroupId="NewMenu"

Location="Microsoft.SharePoint.GroupsPage"

Sequence="1000"

Title="CUSTOMWARE - Microsoft.SharePoint.GroupsPage : NewMenu">

<UrlAction Url="https://www.customware.net/success"/>

</CustomAction>

 

11. Добавление пункта меню в меню Параметры списка Пользователи и Группы

<CustomAction

Id="Microsoft.SharePoint.GroupsPage.SettingsMenu"

GroupId="SettingsMenu"

Location="Microsoft.SharePoint.GroupsPage"

Sequence="1000"

Title="CUSTOMWARE - Microsoft.SharePoint.GroupsPage : SettingsMenu">

<UrlAction Url="https://www.customware.net/success"/>

</CustomAction>

 

12. Добавление пункта меню в меню Действия списка Пользователи и Группы

image

<CustomAction

Id="Microsoft.SharePoint.PeoplePage.ActionsMenu"

GroupId="ActionsMenu"

Location="Microsoft.SharePoint.PeoplePage"

Sequence="1000"

Title="CUSTOMWARE - Microsoft.SharePoint.PeoplePage : ActionsMenu">

<UrlAction Url="https://www.customware.net/success"/>

</CustomAction>

 

Ну я думаю хватит. А вообще ещё много где можно прикрутить свой пункт меню .