Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules /

Discuss all other Modules here.

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

New Module: Custom Menus


Reply


56 Posts   8146 Views

Avatar
Mo

Community Member, 510 Posts

9 June 2010 at 4:46am

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

Avatar
webmanj

Community Member, 7 Posts

15 November 2010 at 1:38pm

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

Avatar
Joshuarr

Community Member, 37 Posts

2 December 2010 at 3:26pm

Edited: 02/12/2010 3:27pm

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

Avatar
Mo

Community Member, 510 Posts

4 December 2010 at 1:25pm

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

Avatar
Mo

Community Member, 510 Posts

4 December 2010 at 2:45pm

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

Mo

Avatar
cumquat

Community Member, 198 Posts

19 January 2011 at 10:19pm

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

Mick

Avatar
Mo

Community Member, 510 Posts

20 January 2011 at 10:54am

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

Mo

Avatar
otherjohn

Community Member, 125 Posts

31 May 2011 at 4:08am

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?