We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30899
    • 3 Posts
    Hello All! I have just started using MODx for a project of mine, and the template that I wish to use requires the use of DL and DT tags. (Just incase anyone is wondering which template, it’s Multiflex-3 by Wolfgang)

    The structure of the menu needs to be as follows:
    <dl class="nav3-grid">
        <dt><a href="#">Navlink 11</a></dt>
        <dt><a href="#">Navlink 12</a></dt>
           <dd><a href="#">Navlink 121</a></dd>
           <dd><a href="#">Navlink 122</a></dd>
           <dd><a href="#">Navlink 123</a></dd>		
         <dt><a href="#">Navlink 13</a></dt>
         <dt><a href="#">Navlink 14</a></dt>
         <dt><a href="#">Navlink 15</a></dt>
    </dl>  
    


    Any thoughts or help would be greatly appreciated smiley
    Thank you very much for your time.
      • 6726
      • 7,075 Posts
      You’re lucky smiley

      Wayfinder is just the tool you need to build a dynamically generated menu, and using definition list won’t be much of a challenge, since the snippet is built to be fully templatable : you’ll have to use the &outerTpl parameter and in your outer template :

      <dl [+wf.classes+]>[+wf.wrapper+]</dl>


      styling it with the &parentClass parameter

      Then the &innerTpl parameter with an appropriate template :

      <dt [+wf.classes+]>[+wf.wrapper+]</dt>


      styling with &innerClass

      Then, the &rowTpl parameter and the row template :

      <dd[+wf.id+][+wf.classes+]><a href="[+wf.link+]" title="[+wf.title+]" [+wf.attributes+]>[+wf.linktext+]</a>[+wf.wrapper+]</dd>


      styling with &rowClass

      I hope I am not posting any inconsistent stuff, just spent my christmas diner drinking nice red wine not fully clear headed here tongue


        .: COO - Commerce Guys - Community Driven Innovation :.


        MODx est l&#39;outil id
        • 15987
        • 786 Posts
        Looks good to me David, nice work. time to go have some wine myself smiley
          • 6726
          • 7,075 Posts
          Yeah sure, time difference... 2am in Paris !
          Glad I didn’t misguide anyone with my ebriated posts tongue

          Have a nice christmas dinner Kyle grin
            .: COO - Commerce Guys - Community Driven Innovation :.


            MODx est l&#39;outil id
            • 14050
            • 788 Posts
            Or you could save yourself some time with some chunks already designed to do everything for Multiflex-3 :-D

            http://modxcms.com/forums/index.php?PHPSESSID=77b97bbd564127f0c833e480eb19d0c0&topic=10171.0
              Jesse R.
              Consider trying something new and extraordinary.
              Illinois Wine

              Have you considered donating to MODx lately?
              Donate now. Every contribution helps.
              • 30899
              • 3 Posts
              Thank you all for your speedy replies, and thank you jesster444 for the link to the port of Multiflex-3. I used the snippets contained within your port, and modified the breadcrumbs snippet to output LI’s instead of just standard &raquo;’s.

              The MODx support forum definitely gets a good mark in my book smiley
              I also am becoming accustomed to MODx, and I think I will use it to run one of the sites that I’m currently developing.

              Thank you all for your help, especially on the Christmas holiday !
                • 6726
                • 7,075 Posts
                Holi-what ?!?

                Thanks for the cheering up, it’s really nice smiley especially considering In france it’s 4.30 in the morning and I am working on a (MODx based) project for a client rolleyes (Just played with the Thumb snippet which I inserted into a Ditto template... don’t worry, you’ll get you MODx fun too!) I also worked the 24th and 25th... but that’s another story.

                Luckily working with MODx is play (at least to me, and that’s lucky !) Sure is cool to know we’re turning you into a MODx addict grin
                (beware of side effects like, say, loss of sleep !)


                  .: COO - Commerce Guys - Community Driven Innovation :.


                  MODx est l&#39;outil id
                  • 30899
                  • 3 Posts
                  MODx looks great, in terms of usability for the clients that I’m working on, and they really seem to like the simple interface for the manager.

                  I’m used to working on Wordpress and PHP, so it’s already play, but the one thing that has me spoiled by Wordpress is file-based templates/snippets... It’s kinda interesting to have to insert 10 little snippets by hand, instead of just dropping in a file into the ’templates’ directory and activating it, but maybe that’s a feature for another release. (Actually, since MODx is open-source and PHP, I guess it’s up to me to start work on that smiley )

                  Thanks Much!
                    • 6726
                    • 7,075 Posts
                    You can already use the method you describe (the include method) with MODx, it’s been posted but don’t remember where... that’s the beauty with MODx, you’re not forced into a pattern smiley
                      .: COO - Commerce Guys - Community Driven Innovation :.


                      MODx est l&#39;outil id