Feb 08, 2017
Jul 07, 2017
CMS UI
Closed, Fixed and tested
The Alloy demo templates settings include the ability to hide the header and footer. However, it's impossible to hide the footer only because the _root.cshtml file only hides the footer if the "HideHeader" checkbox is checked.
Steps to reproduce
1. Create a new site using the Alloy demo templates.
2. Edit any page.
3. Go to the Forms view > Settings tab.
4. Check the "Hide site footer" checkbox.
5. Publish.
6. Go back to view mode. Notice the footer is still visible.
To fix
Change this ~/Views/Shared/Layouts/_Root.cshtml
<div class="container">
@if(!Model.Layout.HideHeader)
@RenderBody()
@if(!Model.Layout.HideFooter)
</div>