Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Blog Module /

Discuss the Blog Module.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Widgets and sub-menus gone from blog?


Go to End


3 Posts   1776 Views

Avatar
mrwindupbird

Community Member, 26 Posts

3 November 2009 at 6:34am

Can someone help me debug why I can no longer see widgets or submenus on my site? This is the first website I have ever endeavored to create so it is quite a steep learning process... Any help is greatly appreciated!

http://www.mrwindupbird.com/diary

And here is the contents of my "navigation2.ss" file in the "Includes" folder... (it's worth noting that the submenus for both the gallery and the music section work perfectly!)

-----------------------------------------------------------

<% control Level(1) %>

<% if Title = Gallery %>

<% if Children %>
<div class="widgetBox">
<h2>Gallery</h2>
<ul>
<% control Children %>
<li><a href="$Link" <% if LinkingMode %>class="$LinkingMode"<% end_if %>>$MenuTitle</a></li>
<% end_control %>
</ul>
</div>
<% end_if %>

<% else %>

<% if Title = Music %>

<% if Children %>
<div class="widgetBox">
<h2>Music</h2>
<ul>
<% control Children %>
<li><a href="$Link" <% if LinkingMode %>class="$LinkingMode"<% end_if %>>$MenuTitle</a></li>
<% end_control %>
</ul>
</div>
<% end_if %>

<% else %>

<% if Title = Blog %>
<% else %>

<% if Title = Forums %>
<% else %>
<% if Children %>
<div class="widgetBox">
<h2>Sub Menu</h2>
<ul>
<% control Children %>
<li><a href="$Link" <% if LinkingMode %>class="$LinkingMode"<% end_if %>>$MenuTitle</a></li>
<% end_control %>
</ul>
</div>
<% end_if %>
<% end_if %>
<% end_if %>
<% end_if %>
<% end_if %>
<% end_control %>
$SideBar
<% include Cart %>

--------------------------------------------------------

Avatar
mrwindupbird

Community Member, 26 Posts

8 November 2009 at 3:28pm

Bump.... anyone?

Avatar
juneallison

Community Member, 110 Posts

13 August 2011 at 8:04am

Were you ever able to get your blog widgets to show again?