Jump to:

1374 Posts in 487 Topics by 520 members

Themes

SilverStripe Forums » Themes » ddsmoothmenu Dropdown Menus

Discuss SilverStripe Themes.

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

Page: 1
Go to End
Author Topic: 1712 Views
  • arthurdent
    Avatar
    Community Member
    153 Posts

    ddsmoothmenu Dropdown Menus Link to this post

    I think I'm missing something very simple here...

    I used the ddsmoothmenu format on a static site I built some years ago. Now I'm revisiting and updating the site using the Silverstripe CMS. Everything's gone well apart from the two level dropdown navigation menus. While my styles have some through untouched the second level has disappeared.

    I'm not totally surprised here, as I thought this would be a sticky area. I was, however, delighted to find that a contributor named 'Antione' had thoughtfully packaged up all the required code as Silverstripe module, complete with some (very basic) instructions.

    I understand that the package is to be installed at root directory but am unsure where $Smoothmenu goes? I've tried placing it in the Navigation.ss include file, replacing $Link but when I do the menu has no links on it. As it stands I'm getting no submenus, using the same stylesheets that work fine on the current static HTML site.

    The supplied instructions:

    Installation
    -----------------------------------------------
    Download and install the project to the root directory of your silverstripe project : myproject/ssdropdownmenu

    Or (advanced users) create a svn:externals rule on the root directory of your project svn propset svn:externals http://ssdropdownmenu.googlecode.com/svn/trunk/ ssdropdownmenu
    Documentation

    To use the menu in a template (most of the time Page.ss), use simply :

    * $SmoothMenu
    * or $CssMenu
    * call with an argument (1) to add the admin menu links for login and access to the CMS at the end of your menu : $SmoothMenu(1) or $CssMenu(1)

    Not too clear on where the $SmoothMenu should go? Presumably in Navigation.ss in place of $Link? Only then all links in the served page are empty!

    Can anybody point out the fundamental mistake that I am making? Thanks!

  • arthurdent
    Avatar
    Community Member
    153 Posts

    Re: ddsmoothmenu Dropdown Menus Link to this post

    Still beating my head on the proverbial brick wall here. I've managed to put a comment on Antoine's blog -- hope he comes back to me. Then again his original post dated from 2009 and blog hasn't been updated since 2011 so I'm not holding out for this...

    Still the same old problem; put $SmoothMenu tag in Navigation.ss and I get navigation with empty links. Put $SmoothMenu direct on Page.ss (as directed in the instructions) and I get nothing at all.

    Have done /dev/build/ and ?flush=1 more times that I care to remember!

    MIght have to call Silverstripe direct and see if I can talk to a friendly developer?

  • Webdoc
    Avatar
    Community Member
    332 Posts

    Re: ddsmoothmenu Dropdown Menus Link to this post

    i think its easier to make dropdown yourself.

    you can find my blog post how to do it - here

    --------------------------------------------------------------------------------------------------
    Arvixe Web Hosting / SilverStripe Community Liaison | Looking for quality SilverStripe Web Hosting? Look no further than Arvixe Web Hosting!

  • arthurdent
    Avatar
    Community Member
    153 Posts

    Re: ddsmoothmenu Dropdown Menus Link to this post

    Much, much easier Webdoc!! Completely solved my problem -- Thanks for your help -- up and running now!

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