Reputation: 1702
As default, SharePoint put Web Parts we deployed into Miscellaneous in Edit Mode. But I want to categorize them into special topics. I found some solutions about this issue but it didn't work. For instance, in web part project, following codes are from MyWebPart.webpart file:
<data>
<properties>
<property name="Title" type="string">MyWebPart Web Part</property>
<property name="Description" type="string">MyWebPart Description</property>
<property name="Group" type="string">General Web Parts</property> // I added this
</properties>
</data>
When I edit the title and the description, and deploy the project, nothing changes. I also add these property tags into MyWebPart.xml file but it makes no difference.
Even I try IISRESET. No solution..
If I miss something about this categorization issue please tell me. I appreciate.
Upvotes: 1
Views: 391
Reputation: 1687
you have to add the "Group" property to the Elements.xml and not in your *.webpart file, like this:
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/" >
<Module Name="MyWebPart" List="113" Url="_catalogs/wp">
<File Path="MyWebPart\MyWebPart.webpart" Url="MyWebPart.webpart" Type="GhostableInLibrary" >
<Property Name="Group" Value="MyGroup" />
</File>
</Module>
</Elements>
Upvotes: 4