Reputation: 2263
In Sharepoint 2010, is there any way to change the category where custom web parts created in VS2010 to be placed.
VS2010 is putting the custom web part in "Custom" category by default. I'm curious that, is there any way for us to change it, for example "MyCustomWebParts" category.
incase I couldn't made myself clear:
Upvotes: 11
Views: 8562
Reputation: 823
You can change file Elements.xml. Into File tag add line:
<Property Name="Group" Value="MyCustomWebPart" />
or
Select “Site Actions” >> “Site Settings” >> “Modify All Site Settings”. Click the “Web Parts” link in the Galleries group. Open your webpart for edit. In the Group section, check the “Specify your own value” option and type in a group name (e.g. MyCustomWebParts)
Upvotes: 14
Reputation: 1830
There is! In the .webpart file, under the Module/File path, add a tag like this:
<Property Name="Group" Value="My Custom Group"/>
That's all there is to it!
Upvotes: 0