How can i tell if a Page has 'any' widgets?
If a page has a widget the page will need a sidebar.
public static $has_one = array(
"MyWidgets" => "WidgetArea"
<% if MyWidgets %>
<!-- Widgets -->
<!-- endWidgets -->
<% else %>
<!-- NO Widgets -->
<% end_if %>
On pages without widgets, no widgets show up as expected ...however the "if MyWidgets" isn't actually working! as the comment <!-- Widgets --> Always get rendered.
maybe i need a fuction on Page.phpto do some kind of check.
i want to do something like
if widges show a menu <span class="span3"> ..etc