We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28978
    • 2 Posts
    Hello.

    I’m currently trying to make my first live ModX site and I love playing arund with it.

    One thing makes my head spin though and thats the menu part.

    I want to use the menu seen here http://www.muddydogpaws.com/development/wayfinder/examples/example-7.html(Or a slightly modified version) But I can’t understand how this works and I have been sitting here for three hours now.

    What I’ve done so far:

    Created a simple template:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
      <title>[*pagetitle*] | </title>
      <meta http-equiv="Content-Type" content="text/html; charset=[(modx_charset)]" />
      <base href="[(site_url)]"></base>
    <link rel="stylesheet" type="text/css" href="assets/templates/template1/main.css" />
    <link rel="stylesheet" href="assets/templates/template1/modxmenu.css" type="text/css" media="screen" />
      <script src="[(base_url)]manager/media/script/mootools/mootools.js" type="text/javascript"></script>
      <script src="[(base_url)]assets/templates/modxhost/drop_down_menu.js" type="text/javascript"></script>
    
    </head>
     
    <body>
     
       <!-- Begin Wrapper -->
       <div id="wrapper">
       
             <!-- Begin Header -->
             <div id="header">
    <IMG SRC="assets/templates/template1/images/log.jpg" WIDTH="946" HEIGHT="120" alt="Topimage">
                
           </div>
           <!-- End Header -->
           
           <!-- Begin Naviagtion -->
    <div id="navigation">
           [[Wayfinder? &startId=`0` &level=`3` &parentRowTpl=`cssplay_revParentRow` &cssTpl=`cssplay_ultdrop`]]
              </div>
           <!-- End Naviagtion -->
           
           <!-- Begin Content -->
           <div id="content">
                  <h2>[*longtitle*]</h2><br>
                  [*#content*]
     
           
           </div>
           <!-- End Content -->
           
           <!-- Begin Footer -->
           <div id="footer">
    <CENTER>Footer</CENTER>
     
            </div>
           <!-- End Footer -->
           
       </div>
       <!-- End Wrapper -->
       
    </body>
    </html>
    


    My css file looks like this
    
    * { padding: 0; margin: 0; }
    
    body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    background-repeat: repeat-x;
    background-color: #c4c4c4;
    background-image:url(images/bg.jpg);
    }
    
    #wrapper { 
     margin: 0 auto;
     width: 947px;
    }
    #header {
     width: 947px;
     color: #FFFFFF;
     padding: 10px;
     border: 1px solid #c0c0c0;
     height: 120px;
     margin: 0px 0px 0px 0px;
     background: #FFFFFF;
    }
    #navigation {
     width: 947px;
     color: #FFFFFF;
     padding: 10px;
     border: 1px solid #c4c4c4;
     margin: 0px 0px 0px 0px;
    background-image:url(images/menubg.jpg);
    }
    #content {
     width: 947px;
     color: #333;
     border: 1px solid #c0c0c0;
     background: #FFFFFF;
     margin: 0px 0px 0px 0px;
     padding: 10px;
     height: 100%;
    }
    #footer {
     width: 947px;
     height: 12px;
    background-color: #FFFFFF;
    background-repeat: repeat-x;
    background-image:url(images/adr_repeat.jpg);
    margin: 0px 0px 0px 0px;
     padding: 10px;
    }
    /* headers */
    h1 {
       margin-top:-10px;
       font-size:3.4em;
       text-align:right;
       color:#000000;
    }
    h2 {
       font-family:Geneva, Arial, Helvetica, sans-serif;
       color:#000000;
    }
    h3 {
       font-size:1.3em;
       font-weight:bold;
       color:#000000;
       border-bottom:1px solid #c4c4c4;
    }
    
    /* paragraphs */
    p {
       margin:2px 0 15px 0;
       line-height:1.3em;
    }
    
    /* links */
    a {
       color:#000000;
       text-decoration:none;
       border-bottom:1px solid #c4c4c4;
    }
    a:hover {
       background-color:#c4c4c4;
    }
    
    /* lists */
    ul, ol {
       margin:0 0 5px 30px;
    }

    This is not completely done yet.
    I have also created 2 chunks
    cssplay_revParentRow
    <li><a [+wf.classes+] href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a>
        <!--[if lte IE 6]>
        <a class="sub" href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]
        <table><tr><td>
        <![endif]-->
        [+wf.wrapper+]
        <!--[if lte IE 6]>
    	</td></tr></table>
        </a>
        <![endif]-->
    </li>
    



    And
    cssplay_ultdrop
    <link rel="stylesheet" media="all" type="text/css" href="assets/templates/wayfinder/ultimate_drop.css" />
    
    Now as far as I can see this looks ok, but my menu turns out totally wrong as you can see on the attached image.
    Can anyoneplease help out a newbie on this one.

    Kind regards
    Michael

      • 11055 ☆ A M B ☆
      • 3,112 Posts
      You should read this first: "The (almost) Complete Guide to Creating Menus in MODx Using Wayfinder"

      You will get far beyond you’ve imagined before. smiley
        Rico
        Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
        MODx is great, but knowing how to use it well makes it perfect!

        www.virtudraft.com

        Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

        Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

        Maintainter/contributor of Babel

        Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.
        • 16750
        • 2 Posts
        I also am stuck on creating my menu. This is my first attempt at a CMS that is even remotely successful. My skill levels are intermediate html coding, novice css and no php. I have read the well prepared pdf file on creating a menu with wayfarer and it is well written, but how would I do a horizontal menu across a top line. I know I am not stupid, but my skill levels are way below anything I have seen posted here as yet. I patted myself on the back for even being able to successfully install MODx and a site template. I have been searching and reading for 2 days now and am seriously rethinking the whole idea of a CMS and just going back to a straight css/html driven site even though it will be MUCH more labor intensive and time consuming as this is a genealogy based research and information site covering 67 counties and many of the folks involved have no more skills than I do.

        Here is a link to my site www.floridagenealogyproject.com ad where the blue bar is under my header image is where I want a TEXT menu, no images or anything else, just a simple text menu with 8 links. The only other thing I have issue with is how to get rid of the My MODx Site in the very top left corner but I can live with that if I can ever figure out a way to set up the menu!! Any assistance will be immensely appreciated.
          • 26931
          • 2,314 Posts
          anonymized-26931 Reply #4, 17 years ago
          Hi laverne,

          just place a simple Wayfinder call in your template within your menu-div:
          <div id="menu">[[Wayfinder? &startId=`0` &level=`3`]]</div>

          ...see what it outputs and go with the css styling from there

          also, as mentioned in the post above, i really recommend reading the wayfinder e-book: http://modxcms.com/forums/index.php?action=dlattach;topic=34176.0;attach=9315
            • 16750
            • 2 Posts
            Thank you, I will give it a try and I have downloaded the "book" and read from start to finish twice.... I tried setting up a menu using it, but it made everything all screwy ecause this template is ONE coloumnand a side menu will really detract from it and I would have to reconstruct the CSS to acommodate a 2nd column that I don’t want to begin with.
              • 26931
              • 2,314 Posts
              anonymized-26931 Reply #6, 17 years ago
              this template is ONE coloumnand a side
              you don’t need to have a side-menu, the examples in the e-book just show how wayfinder works. wayfinder will output whatever you want. the simple call i posted above will output a (nested) list-menu in one column, you just need it to style with css.
              here are some additional links that might help you to work with wayfinder:
              http://wiki.modxcms.com/index.php/Wayfinder
              http://www.muddydogpaws.com/development/wayfinder/examples.html

              css list-menus:
              http://css.maxdesign.com.au/listamatic/