Jump to:

3435 Posts in 1026 Topics by 866 members

Template Questions

SilverStripe Forums » Template Questions » A from scratch CSS based template - SS Menu How to Question!

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

Page: 1
Go to End
Author Topic: 2374 Views
  • aidanodr
    Avatar
    Community Member
    13 Posts

    A from scratch CSS based template - SS Menu How to Question! Link to this post

    Hi Guys,

    Its a start, but getting their slowly:

    http://www.netactivesolutions.net/stripe/

    Im doodling with the look, so far from complete and will change.

    So here is my question - I find that the help lacks in discussing menu systems, particularly out side the normal horizontal top menu and the sub menu down left. As you can see I have a green panel on the left - Just wondering how would one add an SS VERTICAL menu on top of that?

    And even better - how would one make it either as a pop out OR a tree type menu?

    I notice in Arams tute ( http://www.ssbits.com/building-a-theme-from-a-static-template/ ) he mentions a SilverStripe control loop for the menu:

    <% control Menu(1) %>

    <li>
    <a class="$LinkingMode" href="$Link" title="Go to $Title">$MenuTitle</a>
    </li>

    <% end_control %>

    Is this applicable to a left side vertical menu?

    Go easy on me - my PHP knowledge is near zero. I realise one has to use CSS to style, but how could one "control loop" the menu as it might be added to / changed over time?

    Cheers
    Aidan

  • aidanodr
    Avatar
    Community Member
    13 Posts

    Re: A from scratch CSS based template - SS Menu How to Question! Link to this post

    OK,

    It seems I may have answered this myself - I added the above code INSIDE my "sidebarBox" DIVs. Just checking - am I on the right track?

    However I am still at odds with the sub menu solution. I have 6 sub menu items under the SERVICE menu item. Either a pop out or a tree type solution? How would one do this? I assume more PHP than above is required? Another IF statement??

    Cheers
    Aidan

    2374 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.