Not sure if this has been covered before, and Had tried to search the web. But I am looking at using the $SideBarView variable, especially when trying to determine a template layout, so for example:
<div class="col-<% if $SideBarView %>6<% else %>12<% end_if %>">
However, I am trying to use this at the base Page.ss layout with no luck. Ideally I have a few different Layout templates to deal with so was wondering if anyone can point me in a good direction, to kind of determine in a more 'global' way of determining if the SideBar view should exist or not?