Friday, 5 April 2013

Hide "list template" disabling its feature

To remove a standard SharePoint list template you just need to deactivate hidden features activated by visible features on site and web interface.​

According to this post and its approvement, I believe it's compliance to Microsoft:

http://social.technet.microsoft.com/Forums/en-US/sharepoint2010programming/thread/32dc81a4-ca4b-4820-a2b4-72e08ded14c5/

This is a sample code to get features from a site by powershell:

$web = Get-SPWeb -Identity http://client37:90/sampleb
$features = Get-SPFeature -Web $web –Limit ALL | Where-Object {$_.Scope –eq "WEB"}
$web.Dispose()
$features


I listed below the default web features in a publishing site with workflow:

Native Publishing Site

 
DisplayName                    Id                                       Scope
-----------                    --                                       -----
MetaDataNav                    7201d6a4-a5d3-49a1-8c19-19c4bac6e668     Web
PublishingWeb                  94c94ca6-b32f-4da9-a9e3-1f3d343d7ecb     Web
WorkflowHistoryList            00bfea71-4ea5-48d4-a4ad-305cf7030140     Web
NoCodeWorkflowLibrary          00bfea71-f600-43f6-a895-40c0de7b0117     Web
Publishing                     22a9ef51-737b-4ff2-9346-694633fe4416     Web
TasksList                      00bfea71-a83e-497e-9ba0-7a5c597d0107     Web
ObaSimpleSolution              d250636f-0a26-4019-8425-a5232d592c01     Web
PictureLibrary                 00bfea71-52d4-45b3-b544-b1c71b620109     Web
NavigationProperties           541f5f57-c847-4e16-b59a-b31e90e6f9ea     Web
CustomList                     00bfea71-de22-43b2-a848-c05709900100     Web
DocumentLibrary                00bfea71-e717-4e80-aa17-d0c71b360101     Web
 
Now I listed which hidden feature is activated by three "parent" feature:
 

Group Work Lists(9c03e124-eef7-4dc6-b5eb-86ccd207cb87)

 
DisplayName                    Id                                       Scope
-----------                    --                                       -----
WhereaboutsList                9c2ef9dc-f733-432e-be1c-2e79957ea27b     Web
CirculationList                a568770a-50ba-4052-ab48-37d8029b3f47     Web
CallTrackList                  239650e3-ee0b-44a0-a22a-48292402b8d8     Web
HolidaysList                   9ad4c2d4-443b-4a94-8534-49a23f20ba3c     Web
FacilityList                   58160a6b-4396-4d6e-867c-65381fb5fbc9     Web
IMEDicList                     1c6a572c-1b58-49ab-b5db-75caf50692e6     Web
GBWWebParts                    3d25bd73-7cd4-4425-b8fb-8899977f73de     Web
TimeCardList                   d5191a77-fa2d-4801-9baf-9f4205c9e9d2     Web
 

Team Collaboration Lists(00bfea71-4ea5-48d4-a4ad-7ea5c011abe5)

 
DisplayName                    Id                                       Scope
-----------                    --                                       -----
WebPageLibrary                 00bfea71-c796-4402-9f2f-0eb9a6e71b18     Web
IssuesList                     00bfea71-5932-4f9c-ad71-1557e5751100     Web
SurveysList                    00bfea71-eb8a-40b1-80c7-506be7590102     Web
GridList                       00bfea71-3a1d-41d3-a0ee-651d11570120     Web
GanttTasksList                 00bfea71-513d-4ca0-96c2-6a47775c0119     Web
LinksList                      00bfea71-2062-426c-90bf-714c59600103     Web
workflowProcessList            00bfea71-2d77-4a75-9fca-76516689e21a     Web
AnnouncementsList              00bfea71-d1ce-42de-9c63-a44004ce0104     Web
ContactsList                   00bfea71-7e6d-4186-9ba8-c047ac750105     Web
DiscussionsList                00bfea71-6a49-43fa-b535-d15c05500108     Web
DataSourceLibrary              00bfea71-f381-423d-b9d1-da7a54c50110     Web
ExternalList                   00bfea71-9549-43f8-b978-e47e54a10600     Web
EventsList                     00bfea71-ec85-4903-972d-ebe475780106     Web
XmlFormLibrary                 00bfea71-1e1d-4562-b56a-f05371bb0115     Web
 

SharePoint Server Standard Site features(99fe402e-89a0-45aa-9163-85342e865dc8)

 
DisplayName                    Id                                       Scope
-----------                    --                                       -----
RelatedLinksScopeSettingsLink  e8734bb6-be8e-48a1-b036-5a40ff0b8a81     Web
SlideLibrary                   0be49fe9-9bc9-409d-abf9-702753bd878d     Web