753 Posts in 310 Topics by 289 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 645 Views |
-
Widget in template / isEmpty [solved]

13 January 2011 at 11:27pm Last edited: 13 January 2011 11:27pm
Hi,
how do i recognize if widget area is empty ?
I need this inside the templateThe name of my widgetArea is 'SideBlock'
The following template code does NOT work for me.
(guessing the method SideBlock() only returns false/null when the relation does not exist)<% if SideBlock %>
<div class="span-18">
<% else %>
<div class="span-24 last">
<% end_if %>Any ideas ?
Grettings,
Rob -
Re: Widget in template / isEmpty [solved]

19 January 2011 at 9:56pm
Solution:
<% if SideBlock.Widgets %>
<div class="span-18">
<% else %>
<div class="span-24 last">
<% end_if %>
| 645 Views | ||
|
Page:
1
|
Go to Top |

