Adding child elements to menus

I am having a hard time figuring out how to add the child pages of my 5 main site sections. For this do I have to use stalks? I saw someone from Matrix say they almost never use talks. Here is the current code that I am useing. I added the matrix code in a table, so that I can have an icon next to each selection.

    
 
           
navarrow
     


I just cannot get the code right for having the child pages show up under each section when clicked. Here is a screenshot of what I currently have.

[img]http://alumni.puc.edu/picture/menu.jpg[/img]

I have been trying for hours to get this working. How can I have a secondary nav menu right under my first nav menu? I just need a normal menu, and each selction shows its child contents. But each time I try to add the correct code, it does not display the child elements.


This is the code I am using, can someone take a look?


     
        
        
        
       
        
       
       
         
    
navarrow
             

That code is not right at all, I'm afraid. Could you mock up in HTML what the final menu HTML should look like? That would make it easier to show you how to create the menu areas appropriately.


I'm not really sure where the second level <ul> </ul> block should appear in your table.

Double posting to show an example of a very simple two level unnumbered list menu. Notice how the <mysource_sub> appears inside the higher level menu's <mysource_asset> block:

    
    
    
    
    
     
  •  ">      
               
    • ">
    •        
       

So sorry for the garbled code. I think I got pretty confused trying to figure this out.


Here is exactly how my menu should look:







I really appreciate your help Avi.

Actually, an image doesn't help that much. :slight_smile: Can you show me the HTML that you want for a complete menu? Then I can remap that to Matrix menu code.

Here is the code. Sorry if the html is not that great. I am trying to move my entire site from another CMS (phpwcms) over to Matrix. But I need to have it look exactly as it did under the old system.

    
     
               












Alumni Home
Stay Connected
Alumni Directory
Career Network
Give to PUC
Alumni Activities
Gallery
ViewPoint
About Alumni
Alumni Activities
Alumni Stories
PUC Today

Wow, ok. :slight_smile: Umm… I'll get to this as soon as I can, but no guarantee on when that will be. If you want this done immediately, perhaps you should speak to Squiz Sales about getting some support hours?

Sorry for so much code. I think our past system did not write the best html. That is why we are wanting to go Matrix. Any possibility to Squiz ever getting a toll free number for the USA?

[quote]Sorry for so much code.  I think our past system did not write the best html.  That is why we are wanting to go Matrix.  Any possibility to Squiz ever getting a toll free number for the USA?
[right][post=“10984”]<{POST_SNAPBACK}>[/post][/right][/quote]



(Actually, I’m working on that for our new IP phone system, but nothing yet. In the meantime, here is a very quick mock up of a possible solution:


    
    
    
    
    
     
               ';return false;">                                              ';return false;" onMouseOver="MM_swapImage('linkidaPEoGd','','mysource_files/navarrowclosed.gif',1);this.bgColor='#EEECD7';" onMouseOut="MM_swapImgRestore();this.bgColor='#EEECD7';">                                                    

     ">
     

       ">
       


There are a few things that don't work: The javascript hover stuff and the changing images (i.e. the arrow open and close) stuff. However, this should at least print the children. There are ways of doing that other stuff, but that takes quite a bit of tweaking with your design.

Thank you! I cleaned up the code a bit, and this is what I came up with. Still cannot figure out why my page and images are loading so slow though. Does it have something to do with having the images in my design template rather than the media folder?

    
    
    
    
    
       
                                                                                                                     
spacerarrow         "> spacer
spacerarrow       "> spacer

[quote]Thank you!  I cleaned up the code a bit, and this is what I came up with.  Still cannot figure out why my page and images are loading so slow though.  Does it have something to do with having the images in my design template rather than the media folder?
[right][post=“10986”]<{POST_SNAPBACK}>[/post][/right][/quote]



Its probably because your design is still Under Construction or doesn’t have Public Read permission (or both). Until it is Live with Public Read Permission applied, Matrix is serving the files, which is slower.

So, if I have pages that are not for public viewing, and are for my users only. Those pages are going to be server by Matrix, and will be slow? Seems strange that it would be that way. So your saying when they are public, Apache is serving them, right?

That is right. If the file is available to everyone, with no restrictions (Public user) then the file can be served straight from the file system.


If you have some restrictions, then the file has to pass through another layer (Matrix) to ensure that the only the people who can read the file are those who have that permission.

This only occurs for file-based assets though (files, PDFs, images, etc). Standard pages are always served by Matrix, which is why we have the Cache Manager to improve performance.