Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Menu improvement

Our old forums are still available as a read-only archive.

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

Page: 1 2
Go to End
Author Topic: 4396 Views
  • Sigurd
    Avatar
    Forum Moderator
    628 Posts

    Re: Menu improvement Link to this post

    pounder. There's lots of ways to skin this cat. One (without checking my code, so excuse any typos, is)

    <ul id="MainMenuHolder">
    ....
    <a href="...." class="menu_$ID">
    ....
    </ul>

    and then your css have

    .MenuHolder A { default menu style }
    #menu_home {}
    #menu_about {}
    #menu_contact {}

    You could even make a new field inside the CMS, like "menutheme", and this might be a text box, or a dropdown, and thereby specify "red" or "blue" in terms of values, which you use in the same way as my code above... either defining exact CSS classes, background images, etc.

  • pouderStream
    Avatar
    Community Member
    33 Posts

    Re: Menu improvement Link to this post

    This is some nice solution, tnx.
    That could be used somewhere else too ;)

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