Quick Nav:  Online Store   |   Login | Register

Nested uls

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
caroig
<100 Posts
Posts:57


10/04/2008 12:23 PM  

I'd like to get my child menus rendered always as nested uls whether the root is active or not (an animate them later with jQuery). I can see how it's done with the hover examples but is there a simple way I can do it without using the template option - I've tried what I think are the obvious options and can't seem to get the child menu items to display when the root is not active.

Thanks

John Mitchell
Posts:3478


10/04/2008 3:19 PM  
No, the built-in tabs type does not render nested UL's because it was created for the sliding-doors technique of doing tabbed navigation.

There is a built-in Hover type that does have nested UL's and does not require a template but the template is really the best way to get better control.
caroig
<100 Posts
Posts:57


10/05/2008 5:37 AM  

Great stuff - I'll take that route then.

caroig
<100 Posts
Posts:57


10/05/2008 7:30 AM  

I've now got a structure using the template file that looks like this:-

ul
 li
  a level 0 menu item 1
  ul
   li
    a level 1 menu item 1
   /li
 /ul

  ul
   li
    a level 1 menu item 2
   /li
 /ul

I'd like to achieve the same but without closing the ul for each menu item.  Like this:-

ul
 li
  a level 0 menu item 1
  ul
   li
    a level 1 menu item 1
   /li
   li
    a level 1 menu item 2
   /li
 /ul

I've attached the my current template file - which is just the suckerfish template with the hover js removed.

Thanks,


Attachment: 1105305286571.txt

John Mitchell
Posts:3478


10/08/2008 3:05 PM  
To do that you would remove the closing /UL in the container elements of the template, but that would not be valid html if you open all those ULs and then do not close them.

[/Level2-Container[ < /ul> ]]
caroig
<100 Posts
Posts:57


10/30/2008 10:53 AM  

What I'd really like to do is reproduce the structure generated using the hover option (i.e. nested uls) but with a few modifications.  From what you're saying I can't do that with templates - seems a shame.

ul
  li
    a level 0 menu item 1
    ul
      li
         a level 1 menu item 1
     /li
      li
         a level 1 menu item 2
     /li
   /ul

  /li
/ul

 

John Mitchell
Posts:3478


10/30/2008 11:05 AM  
Sure, you can do that with templates.
The suckerfish template skin example has nested UL's exactly like the Hover Type menu.
Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.



ActiveForums 3.7
Powered by: Snapsis Software