SPC016401: Declare property 'Title' in WebParts

WebPart should contain a title which is visible to the user in SharePoint.

TypeName: DeclareTitleInWebPartDefinition
CheckId: SPC016401
Severity: Error
Type: WebPartFile
Resolution

The property 'Title' or 'Description' for a webpart are defined in the .webpart file as follows.

<webParts>
   <webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
       <metaData>
           <type name="TypeName, Version=VersionNumber, Culture=neutral, PublicKeyToken=PublicKeyToken" />
           <importErrorMessage>Cannot import this Web Part.</importErrorMessage>
       </metaData>
       <data>
           <properties>
               <property name="Title" type="string">WebPartTitle</property>
               <property name="Description" type="string">WebPartDescription</property>
           </properties>
       </data>
   </webPart>
</webParts>

Links

comments powered by Disqus