Thursday 20 February 2014

Deploy a WebPart in different custom group

Elements.xml:
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Module Name="WebPartPopulation" Url="_catalogs/wp" RootWebOnly="TRUE">
        <File Path="TheWebPart.dwp" Url="TheWebPart.dwp" Type="GhostableInLibrary" IgnoreIfAlreadyExists="TRUE">
            <Property Name="Group" Value="Custom" />
        </File>
    </Module>
</Elements>
 

Change the Value="Custom" to anything you want the group header to be. 

No comments:

Post a Comment