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.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Widgets only show up one page with submenu.


Reply

14 Posts   2113 Views

Avatar
raamklaza

10 July 2009 at 3:37am Community Member, 182 Posts

Anyone?

Avatar
Willr

10 July 2009 at 10:03am Forum Moderator, 5511 Posts

Remove the If statements

<% if Menu(2) %>
<% include SideBar %>
<div id="Content">
<% end_if %>

to

<% include SideBar %>
<div id="Content">

and

<% if Menu(2) %>
</div>
<% end_if %>

to

</div>

Avatar
innernme

15 November 2009 at 5:26pm Community Member, 3 Posts

sorry willr but your solution is not working.
i removed the if statement and the sidebar loaded, but without the menu(2) links in the page without children.
i have installed:
- dataobject_manager;
- swfupload;
- image_gallery.
maybe the is a bug...

however i ned a second menu in every page and i cannot find a solution.
helpme please!!!

Avatar
Willr

15 November 2009 at 5:51pm Forum Moderator, 5511 Posts

innernme - have you flushed your cache and double checked you're editing the correct file. Post a link to your source code if that helps.

Avatar
innernme

15 November 2009 at 10:11pm (Last edited: 16 November 2009 3:45am), Community Member, 3 Posts

yes, i flushed and checked many times.

---

the code modified in the template "blackcandy":

-

// /themes/blackcandy/templates/Layout/Page.ss

<div class="typography">
      <% include SideBar %>
      <div id="Content">
         
   <% if Level(2) %>
       <% include BreadCrumbs %>
   <% end_if %>
   
      <h2>$Title</h2>
   
      $Content
      $Form
      $PageComments
      </div>
</div>

-

// /themes/blackcandy/templates/Includes/SideBar.ss

<div id="Sidebar" class="typography">
   <div class="sidebarBox">
      <h3>Patologie
      </h3>
      
      <ul id="Menu2">
       <% control Menu(2) %>
         <li class="$LinkingMode"><a href="$Link" title="Go to the &quot;{$Title}&quot; page">$MenuTitle</a></li>
       <% end_control %>
      </ul>

      <div class="clear"></div>
   </div>
   <div class="sidebarBottom"></div>
</div>

---

thanks and sorry for my english.

Avatar
innernme

16 November 2009 at 3:44am Community Member, 3 Posts

sorry, but i'm installing joomla right now for a matter of time.
thanks anyway mate.