Jump to:

1347 Posts in 439 Topics by 514 members

Themes

SilverStripe Forums » Themes » Charity theme - No submenu?

Discuss SilverStripe Themes.

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

Page: 1
Go to End
Author Topic: 1476 Views
  • boogieg
    Avatar
    Community Member
    23 Posts

    Charity theme - No submenu? Link to this post

    Quick - hopefully simple - question:

    I've installed Charity theme and it looks pretty good, but there doesn't seem to be a submenu for the subpages I've created.

    Any chance anyone might be able to tell me which file I might need to edit - and what the necessary code changes might be? Would be a HUGE help to me. I'm bangin' my head against the wall over here.

    thanks,
    Gina

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: Charity theme - No submenu? Link to this post

    Hmm, yeah it hasn't got them. I depends on where you want to display the submenu really.

    You should edit \templates\Page.ss and put this line where you'd like the submenu:

    <% include SubNavigation %>

    Then create the file \templates\Includes\SubNavigation.ss

    And make it look something like:

    <% if Menu(2) %>
    <ul>
       <% control Menu(2) %>   
          <li><a href="$Link" title="Go to the $Title.XML page" class="$LinkingMode"><span>$MenuTitle</span></a></li>
       <% end_control %>
    </ul>
    <% end_if %>

    This should get you started

    1476 Views
Page: 1
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.