We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9400
    • 5 Posts
    I did a new install of modx, with the default sample pages. I added a lot of new pages to the default, but the menu does not seem to show me all the levels, it shows me just the first level. I did try to change the wayfinder code and added in &level=’0’ but it does not show me more than one level under the root level.
    the menu code is as follows:

    <div id="ajaxmenu"> [[Wayfinder?startId=`0` &level=`0` &outerTpl=`mh.OuterTpl` &innerTpl=`mh.InnerTpl` &rowTpl=`mh.RowTpl` &innerRowTpl=`mh.InnerRowTpl` &firstClass=`first` &hereClass=``]] </div>


    can you please let me know what I need to do in order to display all page levels?
      • 4310
      • 2,310 Posts
      If you’re using the standard MODx Host template and menu then it will only show 2 levels as it is a javascript simple dropdown.
      Have a look at Muddy Dog Paws for other menus.
        • 9400
        • 5 Posts
        :) yes that definately could be the reason. this is the first time I have come across modx and you can consider me as a noob. so sorry if I’ve been asking the basics of questions.
          • 9400
          • 5 Posts
          now how do we change this basic dropdown to the drop down on muddydogpaws? is there any tutorial for this or any documentation?
            • 9400
            • 5 Posts
            I’m almost giving up.

            This is the first time I tried using Modx. I liked some of it’s features and I thought it would be a nice and simple content management system. yes the paging system was good and I liked the way the heirarchy was handled. but I think Modx still has a long way to go. the menu system needs to be simpler to use. from a default install changing the menu to show all the levels was really a task. I did go through the documents and the muddypaw site examples and tried to use them but the problem was getting more and more complex.

            I agree many features of Modx are simple and and good to use, but the menu system would play a major role in content management. if it is that difficult to handle a minor change as to show all levels in a menu, then I think there should be some thought by the core team to simplify the menu system at a priority in the next release.

            The wayfinder might be good, but we should be able to create some sort of a menu code generator which we could preview and use in the templates easily.

            anyways, it was really frustrating to try to learn a lot of stuff to have a simple change and that is the reason for this post. But since I have already built the content and the pages for the 500 page site in the modx, I think I’ll do some more research and try to fix this problem. but as I said.... I’ve almost given up.
              • 4310
              • 2,310 Posts
              I know a lot of people seem to struggle with creating custom multi level menus with Wayfinder.
              My approach is to find the menu style/type I need then look at the rendered source code.
              I then create the tpl chunks to emulate that menu.
              Initially it can be a bit trial and error and frustrating but the beauty of MODx is you can have any sort of menu, the downside is that initially it’s more work.
                • 2472
                • 151 Posts
                I’ve spend two evenings in order to get a rather basic tabbed navigation working and I must agree that Wayfinder is not the most intuitive snippet in the lot...

                The topic in wich I asked for some pointers received no answer, so I guess I’m not the only one struggling. The good news is I finally got it working, I’ll post the method I used to get a grip on Wayfinder asap.
                  A thing of beauty is a joy forever ( John Keats)
                  • 9400
                  • 5 Posts
                  it’s been 2 whole days just to fix the &level . Thanks for the tip Bunk58, I shall try your method and see how it goes. And Avander_be, I think the more experiences and their solutions people put in here, it would go a long way in newbees getting to know modx. I really like modx in a way that it is simple and what most of our clients require. most of our clients want a simple application where they would add/update links and they want the ability to modify the content, without major complications. in those terms I think Modx is super and I dont think joomla or Drupal would fit into this requirement. I’m investing a lot of effort and time in getting to configure the menu system because as developers we configure everything to the client’s needs before handing it to them. I get a lot of clients with these requirements, so hopefully my efforts dont go to waste smiley. the menu system is the major downside of Modx and might put off many users. I’ve not delved into the other aspects as yet like the SEO and stuff.. soo maybe I still have to spend a lot of time smiley.



                    • 4749
                    • 623 Posts
                    falconhead,
                    There are solid examples on the MuddyDogPaws.com site, like this one: http://www.muddydogpaws.com/development/wayfinder/examples/example-7.html

                    Also, there are many examples in the Wayfinder forum, plus the wiki. The templating system isn’t too difficult once you understand what it’s trying to do. You’re wrapping each part of the menu so that Wayfinder can correctly style all the parts. Even though it’s older, I believe the wiki examples of Wayfinder are quite good. I still consider myself a noob - it’s obvious, I’m asking questions constantly! wink

                    Your patience and persistence WILL pay off. Don’t give up on ModX it’s a fabulous tool. I would never build a site without it now. Good luck.
                      The MODx has you...
                      Utah Web Design