Beytan Kurt
Beytan Kurt

Reputation: 2263

Change the Category for Web Part to be displayed

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:

here

Upvotes: 11

Views: 8562

Answers (2)

vvk
vvk

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

Camron B
Camron B

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

Related Questions