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   2136 Views

Avatar
raamklaza

Community Member, 182 Posts

10 July 2009 at 3:37am

Anyone?

Avatar
Willr

Forum Moderator, 5513 Posts

10 July 2009 at 10:03am

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

Community Member, 3 Posts

15 November 2009 at 5:26pm

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

Forum Moderator, 5513 Posts

15 November 2009 at 5:51pm

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

Community Member, 3 Posts

15 November 2009 at 10:11pm

Edited: 16/11/2009 3:45am

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

Community Member, 3 Posts

16 November 2009 at 3:44am

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