17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 876 Views |
-
widgets only show up when there is a subpage?

11 November 2008 at 11:38am
I add widgets to all my pages, but for a weird reason the only show up when i have a subpage...
Below is the code, hope someone notices the mistake or has a solution.
<div id="Sidebar" class="typography">
<div class="dbx-group" style="position: relative; display: block;">
<div class="sidebarBox dbx-box">
<h3 class="dbx-handle">
<% control Level(1) %>
$Title
<% end_control %>
</h3>
<div class="dbx-content">
<ul id="Menu2">
<% control Menu(2) %>
<% if Children %>
<li class="$LinkingMode"><a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode levela"><span><em>$MenuTitle</em></span></a>
<% else %>
<li><a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode levela"><span><em>$MenuTitle</em></span></a>
<% end_if %>
<% if LinkOrSection = section %>
<% if Children %>
<ul class="sub">
<li>
<ul>
<span class="roundWhite">
<% control Children %>
<li><a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode levelb"><span><em>$MenuTitle</em></span></a></li>
<% end_control %>
</span>
</ul>
</li>
</ul>
<% end_if %>
<% end_if %>
</li>
<% end_control %>
</ul>
</div>
</div>
<!-- <div class="clear"></div> -->
$Sidebar
</div>
</div> -
Re: widgets only show up when there is a subpage?

11 November 2008 at 3:06pm
Its because that whole Sidebar.ss file isnt loaded unless their is a menu. Look in themes/blackcandy/templates/Layout/Page.ss for the <% if Menu(2) %> check. You need to remove that
-
Re: widgets only show up when there is a subpage?

12 November 2008 at 2:48am
Oke that worked
Now it shows a box (itheme theme) with the website title in it
I tried to take out the <h3> .... </h3> bit, but then it just doesn't show the title but still a part of the surround box.Any tips?
<div id="Sidebar" class="typography">
<div class="dbx-group" style="position: relative; display: block;">
<div class="sidebarBox dbx-box">
<h3 class="dbx-handle">
<% control Level(1) %>
$Title
<% end_control %>
</h3>
<div class="dbx-content">
<ul id="Menu2">
<% control Menu(2) %>
<% if Children %>
<li class="$LinkingMode"><a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode levela"><span><em>$MenuTitle</em></span></a>
<% else %>
<li><a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode levela"><span><em>$MenuTitle</em></span></a>
<% end_if %>
<% if LinkOrSection = section %>
<% if Children %>
<ul class="sub">
<li>
<ul>
<span class="roundWhite">
<% control Children %>
<li><a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode levelb"><span><em>$MenuTitle</em></span></a></li>
<% end_control %>
</span>
</ul>
</li>
</ul>
<% end_if %>
<% end_if %>
</li>
<% end_control %>
</ul>
</div>
</div>
<!-- <div class="clear"></div> -->
</div>
$Sidebar
</div>
| 876 Views | ||
|
Page:
1
|
Go to Top |


