Expand Minimize

Do not make SiteDefinition visible in the whole farm

Site definitions are visible in the whole farm by default. The attribute 'VisibilityFeatureDependency' provides a way to hide the site definition depending on an activated feature.

CheckId SPC040701
TypeName TemplateConfigurationShouldNotBeVisibleInWholeFarm
Severity Warning
Type Configuration

Configurations in a SiteDefinition should not be visible in the whole farm. Use attribute 'VisibilityFeatureDependency' to hide the site template depending on activated features.

<Templates xmlns:ows="Microsoft.SharePoint">
  <Template Name="RESEARCH" ID="10001">
    <Configuration ID="0" Title="Research Collaboration site"
      Hidden="FALSE" ImageUrl="_layouts/images/stsprev.jpg"  
      Description="This definition creates a site for the Research  
      team to create, organize, and share general information."  
      DisplayCategory="Research & Development">

To suppress this violation in XML SharePoint code add the following comment right before the XML tag which causes the rule violation. Learn more about SuppressMessage here.

<!-- "SuppressMessage":{"rule":"SPC040701:TemplateConfigurationShouldNotBeVisibleInWholeFarm","justification":"Provide reason for suppression here"} -->
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.