SPD010705: SiteDefinition Template references Feature in VisibilityFeatureDependency |
SiteDefinition Configuration can reference Features in attribute VisibilityFeatureDependency
CheckId | SPD010705 |
---|---|
TypeName | SiteTemplateConfigurationReferencesVisibilityFeatureDependency |
Severity | Information |
Type | Configuration |
The following example from webtempsps.xml shows that template "CMSPUBLISHING#39" is only visible if Feature "SharePoint Server Publishing Infrastructure" is activated:
<?xml version="1.0" encoding="utf-8"?>
<Templates xmlns:ows="Microsoft SharePoint">
...
<Template Name="CMSPUBLISHING" ID="39" >
<Configuration
ID="0"
Title="Publishing Site"
Hidden="FALSE"
ImageUrl="/_layouts/images/stpb.png"
DisplayCategory="Publishing"
...
VisibilityFeatureDependency="F6924D36-2FA8-4f0b-B16D-06B7250180FA" >
</Configuration>
</Template>
...
<Templates>
<Templates xmlns:ows="Microsoft SharePoint">
...
<Template Name="CMSPUBLISHING" ID="39" >
<Configuration
ID="0"
Title="Publishing Site"
Hidden="FALSE"
ImageUrl="/_layouts/images/stpb.png"
DisplayCategory="Publishing"
...
VisibilityFeatureDependency="F6924D36-2FA8-4f0b-B16D-06B7250180FA" >
</Configuration>
</Template>
...
<Templates>
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":"SPD010705:SiteTemplateConfigurationReferencesVisibilityFeatureDependency","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.