Jump to:

23358 Posts in 17875 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » Widgets only show up one page with submenu.

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

Page: 1 2
Go to End
Author Topic: 2054 Views
  • raamklaza
    Avatar
    Community Member
    182 Posts

    Re: Widgets only show up one page with submenu. Link to this post

    Anyone?

  • Willr
    Avatar
    Forum Moderator
    5482 Posts

    Re: Widgets only show up one page with submenu. Link to this post

    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>

  • innernme
    Avatar
    Community Member
    3 Posts

    Re: Widgets only show up one page with submenu. Link to this post

    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!!!

  • Willr
    Avatar
    Forum Moderator
    5482 Posts

    Re: Widgets only show up one page with submenu. Link to this post

    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.

  • innernme
    Avatar
    Community Member
    3 Posts

    Re: Widgets only show up one page with submenu. Link to this post

    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.

  • innernme
    Avatar
    Community Member
    3 Posts

    Re: Widgets only show up one page with submenu. Link to this post

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

    2054 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.