We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18356
    • 5 Posts
    Hi all, im new to ModX and I previously used Joomla! which is a load of crap lol.

    This is what im trying to do.

    I’ve successfully put in some resourses in the top menu system on the ModX Host template, but when I’ve got child resourses in with the parent resourses, the child resourses don’t show. Like im trying to do this:

    Games >> Max Payne 3 >> Game Information

    But all it does is this:

    Games >> Max Payne 3

    So how can I make the child resourses show up?

    Thanks to anyone who replies.
    MarkD1990
      • 16183
      • 1,390 Posts
      Mark,

      Welcome to the forums and to one of the best...if not the best CMS!

      I suppose you are using Wayfinder for your menu? It has a parameter called &level that determines how deep the menu should go. If you specify &level=`0` or don’t use the parameter at all, Wayfinder will display all levels. If you want to limit the number to say, 3 levels, you would add that to your Wayfinder call, e.g.:

      [[Wayfinder? &startId=`0` &level=`3`....etc, etc]]


      The documents and their parents have to be published in order for them to show. They also have to have their "show in menu" boxes ticked (seen when editing the document). By the way, there is a way to tell Wayfinder to still show in the menu a dcoument who’s "show in menu" box is unticked...but that’s for your homework and another day smiley

      This site is your best friend for things Wayfinder:
      http://www.muddydogpaws.com/development/wayfinder/features.html

      Oh, and I think the e-book in my sig might be of some use...

      Have you managed to find other MODx tutorials/resources? If not I’d be happy to post them here for you.

      cheers/k

      ps: ex joomla guy...
        • 18356
        • 5 Posts
        Thanks kongondo,

        I am looking through the attachment for your e-book and its going to be a very long read lol, but I was wondering where in the wayfinder Plugin would I put the code you mentioned above?

        And no I haven’t thought of reading through any ModX resourses yet, but if you could give me some links, I would very much appriciated it.

        Thanks again.

        MarkD1990
          • 16183
          • 1,390 Posts
          Hi Mark,

          Ye, it is a long read, laugh

          By the way, just to get you on the right footing, Wafyinder is a snippet and not a plugin wink

          Secondly, you don’t need to touch the Wayfinder code. What you need to do is "call" the snippet - that’s MODx lingo for triggering the snippet to do something.

          So, if you want your menu to appear in all your pages (documents), then the best place is to call Wayfinder in your template. If you want it to appear on a certain page, then you call it in that page. I don’t want to overwhelm you with info but you will find MODx very flexible and that you can even call Wayfinder from within what is called a chunk.

          Anyway, back to the call: Call Wayfinder in your template (I assume you want the menu to appear in several documents):

          [[Wayfinder? &startId=`0` &level=`3`....etc, etc]]


          nb: the etc above refers to other parameters you may wish to use. "Unfortunately" you will first have to do some reading on MODx and Wayfinder etc before you can get your hands dirty. It is best to get the basics first (and right) than stumble along. Oh, I assume you are doing all this on a test site and not a live one wink but am sure you know this smiley

          RESOURCES:
          http://bobsguides.com/MODx.html
          http://net.tutsplus.com/tutorials/other/working-with-a-content-management-framework-modx/
          http://codingpad.maryspad.com/
          http://svn.modxcms.com/docs/display/MODx096/Home

          and some videos...

          http://www.tipsfor.us/2009/01/13/content-management-systems-prelude-to-modx-part-i/

          That should get you started. I have a feeling I have forgotten something. If I have I’m sure someone will chip in.

          Happy MODx-ing!

          cheers/k
            • 18356
            • 5 Posts
            Cheers for all the information mate. And yes I am using it on a test site I have set up on my laptop using Xampp.