Declare property 'Title' in WebParts |
WebPart should contain a title which is visible to the user in SharePoint.
CheckId | SPC016401 |
---|---|
TypeName | DeclareTitleInWebPartDefinition |
Severity | Error |
Type | WebPart |
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>
<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>
Disclaimer: The views and opinions expressed in this documentation and in SPCAF do not necessarily reflect the opinions and recommendations of Microsoft or any member of Microsoft. SPCAF and RENCORE are registered trademarks of Rencore. All other trademarks, service marks, collective marks, copyrights, registered names, and marks used or cited by this documentation are the property of their respective owners.