The path generated will be like <span style="font-family:sans-serif;font-size:13px;background-color:rgb(255,204,153)">productmenu/products/Color+MFP. </span><div><font face="sans-serif"><br></font></div><div><font face="sans-serif">It turns out "+" does not work in Drupal menu router function.</font></div>
<div><font face="sans-serif"><br></font></div><div><font face="sans-serif">Change urlencode() and make links look like </font><span style="font-family:sans-serif;font-size:13px;background-color:rgb(255,204,153)">productmenu/products/Color_MFP will fix the issue</span><font face="sans-serif"><br>
</font><br>Cheers, Eric<br><br><div class="gmail_quote">On Fri, Oct 26, 2012 at 3:17 PM, Ken Robinson <span dir="ltr"><<a href="mailto:kenrbnsn@rbnsn.com" target="_blank">kenrbnsn@rbnsn.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks. I tried that and it didn't work for me. :-(<br>
<br>
I thought that maybe the superfish module that I'm using to display<br>
the menu was interfering, but turning it off didn't help. Any other<br>
suggestions?<br>
<span class="HOEnZb"><font color="#888888"><br>
Ken<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
At 05:54 PM 10/25/2012, Metzler, David wrote:<br>
>Problem is the titles in the child elements. Try this:<br>
><br>
> $items["productmenu/products/" .urlencode($cat)] = array(<br>
> 'title' => $cat,<br>
> 'page callback' =><br>
> '_productmenu_menu_page',<br>
> 'page arguments' =><br>
> array(url("$base_url/productscategory/$id")),<br>
> 'access callback' => TRUE,<br>
> 'expanded' => TRUE,<br>
> );<br>
>That worked for me.<br>
><br>
>-----Original Message-----<br>
>From: <a href="mailto:support-bounces@drupal.org">support-bounces@drupal.org</a> [mailto:<a href="mailto:support-bounces@drupal.org">support-bounces@drupal.org</a>]<br>
>On Behalf Of Ken Robinson<br>
>Sent: Thursday, October 25, 2012 2:00 PM<br>
>To: <a href="mailto:support@drupal.org">support@drupal.org</a><br>
>Subject: Re: [support] Problem getting a custom menu to display (D7)<br>
><br>
>Thanks. According to the comments in the menu example I'm following, if you<br>
>don't have a 'type', it defaults to MENU_NORMAL_ITEM. If I type the<br>
>generated<br>
>URL directly, I get the expected results -- it goes to the correct place,<br>
>not a 404.<br>
><br>
>Ken<br>
><br>
> > -----Original Message-----<br>
> > From: <a href="mailto:support-bounces@drupal.org">support-bounces@drupal.org</a> [mailto:<a href="mailto:support-bounces@drupal.org">support-bounces@drupal.org</a>] On<br>
> > Behalf Of Metzler, David<br>
> > Sent: Thursday, October 25, 2012 4:52 PM<br>
> > To: '<a href="mailto:support@drupal.org">support@drupal.org</a>'<br>
> > Subject: Re: [support] Problem getting a custom menu to display (D7)<br>
> ><br>
> > Looks like you're missing the 'type' on your second items array (the<br>
> > one in your foreach loop. You also might consider properly url<br>
> > econding the menu rather than using the str_replace() function.<br>
> ><br>
> > Also can you verify what happens if you visit the URL directly? Do you<br>
> > get the page or a page not found?<br>
> ><br>
> > Dave<br>
> ><br>
> > -----Original Message-----<br>
> > From: <a href="mailto:support-bounces@drupal.org">support-bounces@drupal.org</a> [mailto:<a href="mailto:support-bounces@drupal.org">support-bounces@drupal.org</a>] On<br>
> > Behalf Of Ken Robinson<br>
> > Sent: Thursday, October 25, 2012 1:29 PM<br>
> > To: <a href="mailto:support@drupal.org">support@drupal.org</a><br>
> > Subject: [support] Problem getting a custom menu to display (D7)<br>
> ><br>
> > I have written a menu using a custom module. I can't get it to<br>
> > display on my test site. I used the menu example in the examples<br>
> > module as a guideline.<br>
> ><br>
> > My code can be seen at <a href="http://pastebin.com/VJiC5anM" target="_blank">http://pastebin.com/VJiC5anM</a><br>
> ><br>
> > I've enabled the module and I know it's being executed, since I see<br>
> > the output of the dpm($items) call. I clear the cache every time I<br>
> > make a change to the code. Any help would be appreciated.<br>
> ><br>
> > Thanks in advance.<br>
> ><br>
> > Ken<br>
> ><br>
> > --<br>
> > [ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
> > --<br>
> > [ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
><br>
>--<br>
>[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
>--<br>
>[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
<br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</div></div></blockquote></div><br></div>