Most SharePoint developers have created either a basic web part or a visual web part, deployed it and noticed that it ended up in the ‘Custom’ group/category. But, what if you wanted to put it in its own special group/category?
As it turns out, it’s fairly easy to do this. In the ‘Elements.xml’ file that you include in your web part, just include the Group Property using the new value. For instance:
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="YourWebPart" List="113" Url="_catalogs/wp">
<File Path="YourWebPart\YourWebPart.webpart" Url="YourWebPart.webpart" Type="GhostableInLibrary">
<Property Name="Group" Value="YourGroup" />
</File>
</Module>
</Elements>
All Things DotNet Discussed – Winforms/ASP.Net/SharePoint/WPF
Leave a reply
You must be logged in to post a comment.