Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# Constructor 6/10/2009 2:32 PM (edited 6/10/2009 6:32 PM)
I have made a few changes to the Menu module and attached them. I have added to the branches folder of the Menu module in the contrib.

Prior to this change the output was like this:
< div id="menu">
  < div class="moduletools">
    < a id="sectionproperties" href="/Cuyahoga2/Admin/SectionEdit.aspx?SectionId=8">< span>Section Properties< /span>< /a>< /div>< div class="section">
    < ul id="Menu_Main">
      < li>< a href="/Cuyahoga2/Admin">Admin< /a>< /li>
      < li>< a href="/Cuyahoga2/home.aspx">Home< /a>< /li>
      < li>< a href="/Cuyahoga2/page1.aspx">Articles< /a>< /li>
      < li>< a href="/Cuyahoga2/page2.aspx">Page 2< /a>< /li>
      < ul>
        < li>< a href="/Cuyahoga2/page2/page-2-1.aspx">Page 2-1< /a>< /li>
        < li>< a href="/Cuyahoga2/page2/page-2-2.aspx">Page 2-2< /a>< /li>
        < li>< a href="/Cuyahoga2/page2/page-2-3.aspx">Page 2-3< /a>< /li>
      < /ul>
    < /ul>
  < /div>
< /div>

Now it renders nested lists like this:
< div id="menu">
  < div class="moduletools">
    < a id="sectionproperties" href="/Cuyahoga2/Admin/SectionEdit.aspx?SectionId=8">< span>Section Properties< /span>< /a>< /div>< div class="section">
    < ul id="Menu_Main">
      < li>< a href="/Cuyahoga2/Admin">Admin< /a>< /li>
      < li>< a href="/Cuyahoga2/home.aspx">Home< /a>< /li>
      < li>< a href="/Cuyahoga2/page1.aspx">Articles< /a>< /li>
      < li>< a href="/Cuyahoga2/page2.aspx">Page 2< /a>
        < ul>
          < li>< a href="/Cuyahoga2/page2/page-2-1.aspx">Page 2-1< /a>< /li>
          < li>< a href="/Cuyahoga2/page2/page-2-2.aspx">Page 2-2< /a>< /li>
          < li>< a href="/Cuyahoga2/page2/page-2-3.aspx">Page 2-3< /a>< /li>
        < /ul>
      < /li>
    < /ul>
  < /div>
< /div>

I have also included a test template with dropdown list menu.

This little issue bugged me for a while. Thanks to leandrobenitez for the origial module :)
# YKS 6/20/2009 5:43 PM
I think that the original module has made for intervida (NGO) web developer team and upload it for leandrobenitez... but he work now in umbraco cms...
# RabidDog 7/20/2009 9:55 PM (edited 7/20/2009 10:16 PM)
I have been fighting with this menu for about a week now and it doesn't render any child nodes other than the active node and child nodes of the active node. Any ideas?

Example
- home
- my parent
---- my child 1
------ my child 1.1
---- my child 2
---- my child 3

Until "my child 1" becomes active " my child 1.1" will not be rendered. There appears to be no overide checkbox either. Please help

I am using Cuyahoga 1.6
# Constructor 7/20/2009 11:23 PM
What version are you using?

Are you using: 'Cuyahoga.Modules.Menu\branches\Nested List Render Fix' from the contrib?

I have the module working with 3 levels. not tried more.
# RabidDog 7/22/2009 9:47 PM
I am using the nested list fix

I runs fine downl to level three but doesn't render subsequent nodes

//works fine
node 1
-- node 2
---- node 3

//won't render node 4 till node 3 is the active node
node 1
-- node 2
---- node 3
------ node 4

Any ideas?

# Constructor 7/22/2009 11:13 PM
RabidDogI am using the nested list fix

I runs fine downl to level three but doesn't render subsequent nodes

//works fine
node 1
-- node 2
---- node 3

//won't render node 4 till node 3 is the active node
node 1
-- node 2
---- node 3
------ node 4

Any ideas?

I have just done a quick test and it has rendered:

Page2
>Page2-a
>>Page2-a-a
>>>Page2-a-a-a
>>>>Page2-a-a-a-a
>>>>>Page2-a-a-a-a-a


So the module seems to render the list markup fine. I think the problem you are having may be a CSS or javascript issue? Or does the markup not render (check the html markup in rendered to the browser).

What are you using to render your navigation? (I use jQuery and some css)

You could check also that your menu module is set up like this:

First Level [0 = Home, 1 = 1st level] : is set to 0 so the admin link renders.
Last Level [-1 = render all] : is set to -1 so it renders every link no matter the depth
Show Children of Active Only : is NOT checked so all links render without being active

Does this help?
# RabidDog 7/23/2009 12:11 AM
Thanks for getting back to me!

The markup does not render.

I cannot see a check box that says "Show Children of Active Only"

Have you commited this to the svn repo? Sorry man, just trying to make certain I am not doing anything stupid and thanks so much for your help thus far :)
# RabidDog 7/23/2009 12:34 AM
Ok I found the checkbox and saved the settings but it still doesn't render past level 3 :(
# Constructor 7/23/2009 10:28 AM
RabidDogOk I found the checkbox and saved the settings but it still doesn't render past level 3 :(

Even if you set the Last Level [-1 = render all] in the admin?

What version of Cuyahoga are you using?

I have not has this issue...
# RabidDog 7/23/2009 6:48 PM
Version 1.6

It really is strange. The sitemap component picks it up fine (the multiple levels though)
# tuantmyb 9/18/2009 5:23 PM
Please hell me why when i use module Menu, i write code for navigation:
HyperLink hpl = new HyperLink();
hpl.NavigateUrl = _module.GetUrlFromNode(node);

But i don't know why when i click on an item, the browser open new windows with above Url, i only it's past param to browser, not open new windows.
Help me?
# Yeorwned 9/18/2009 5:30 PM
You need to set a target to instruct the browser how to open the URL. You map this property to the HyperLink target field.

Your Solution
HyperLink hpl = new HyperLink();
hpl.Target = "_top";
hpl.NavigateUrl = _module.GetUrlFromNode(node);

Other Target Values
_blank 
 Renders the content in a new window without frames. 
 
_parent 
 Renders the content in the immediate frameset parent. 
 
_search 
 Renders the content in the search pane.
 
_self 
 Renders the content in the frame with focus. 
 
_top 
 Renders the content in the full window without frames. 
 
# tuantmyb 9/19/2009 4:40 AM
Thanks Yeorwned,
i 've resolved this problem with your instruction.
# Constructor 11/11/2009 12:38 AM
RabidDogVersion 1.6

It really is strange. The sitemap component picks it up fine (the multiple levels though)

Getting the latest V1.6 from the repository fixes things.
# jernejl 3/18/2010 11:18 AM
We've also started using the Menu module for one of our projects. Works fine. I'd just like to see the version that's in the "Nested List Render Fix" branch be merged into the trunk. I think everybody is using that version? If the original maintainer hasn't got the time to do it, i'd gladly step in.