Jump to:

10844 Posts in 2515 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » New Module: Custom Menus

Discuss all other Modules here.

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

Page: 1 2 3 4 5 6 7
Go to End
Author Topic: 7291 Views
  • Mo
    Avatar
    Community Member
    485 Posts

    Re: New Module: Custom Menus Link to this post

    Just thought I would put out a request to anyone using this module. I have been having some trouble with it in SS 2.4. It generally works fine, but on some installs the tabs dont load properly (I have attached a screen shot).

    I am pretty much banging my head against a wall trying to work it out, any ideas anyone?

    I am guessing it is a JS error, as all the functionality works. I would really like to get this fixed, and if anyone has any thoughts, or has encountered this, your input would be handy.

    Cheers,

    Mo

  • webmanj
    Avatar
    Community Member
    7 Posts

    Re: New Module: Custom Menus Link to this post

    MO: I was able to resolve the "admin page render" issue by adding a line of code to the custommenus config file:

    i18n::include_locale_file('custommenus', 'en_US');

    Sad, I'm able to resolve the back end but I can get the menu to actually display in my template. Can someone give me a working example of what really goes in the template?

    I've tried:

    <% control CustomMenu(mymenu) %><a href="$Link">something</a><% end_control %>
    <% control CustomMenu('mymenu') %><a href="$Link">something</a><% end_control %>

    The first gives me a menu without links. And, it only does one link where I have 5 pages set. The second one just gives me an error. I'm using SS 2.4.2 along with CustomMenus from the trunk

    Thanks,
    Jason

  • Joshuarr
    Avatar
    Community Member
    37 Posts

    Re: New Module: Custom Menus Link to this post

    Hey, I'm having a problem with the Custom Menus module on my install of ss 2.4.3 - basically instead of a new menu I get a forum page instead. Is this just me or is anyone else having this problem?
    Thanks!
    Josh

  • Mo
    Avatar
    Community Member
    485 Posts

    Re: New Module: Custom Menus Link to this post

    Hi,

    Apparently I wasn't subscribed to this thread, which is a tad annoying when I thought I was!

    webmanj: is the menu slug you set called 'mymenu'? What is returned by CustomMenu is a simple DataObjectSet of pages, so you shouldn't have any problems.

    Could you possible upload a screenshot of your current 'mymenu' setup in Silverstripe?

    Joshuarr: Not sure if this is a 2.4.3 bug. I have seen it before, but thought it was fixed. Are you using checked out trunk from SVN? Also, any other modules installed?

    Cheers,

    Mo

  • Mo
    Avatar
    Community Member
    485 Posts

    Re: New Module: Custom Menus Link to this post

    Hmm, tested this in 2.4.3 and seems to be ok for me. Could possible be a conflict with another module?

    Mo

  • cumquat
    Avatar
    Community Member
    189 Posts

    Re: New Module: Custom Menus Link to this post

    Just wanted to say thanks for this module, does exactly what it says on the tin and works well.

    Mick

  • Mo
    Avatar
    Community Member
    485 Posts

    Re: New Module: Custom Menus Link to this post

    Hi Mick, thanks for the feedback. Glad it is working ok for you.

    Mo

  • otherjohn
    Avatar
    Community Member
    125 Posts

    Re: New Module: Custom Menus Link to this post

    Could someone give an example of how to set this up in a template.

    I get that you need to put

    <% control CustomMenu('my-menu-slug') %>what goes here?<% end_control %>


    But I am not sure what to put inside the CustomMenu Control. Can someone give me some samples?

    7291 Views
Page: 1 2 3 4 5 6 7
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.