We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42689
    • 125 Posts
    Hello i am new to modex,i have install the modex and also run it on local.I already have creat 4 page with there templates, now i want to show that four pages in header part as a menu ..

    i have used that code

    [[Wayfinder? &startId=`1` &level=`1` &rowTpl=`rowTpl`]]

    But after using this code at my header part there are no showing any menu, so can some body help me ..?

    Thanx
      • 3749
      • 24,544 Posts
      Try &startId=`0` or set that property to a resource that has children.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
      • Bob, this was answered in a duplicate post. The problem was that Wayfinder was not installed.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 38339
          • 41 Posts
          not sure, if you mentioned this. The user chirag_wgsol 'spams' his questions through the whole forum. So no one can follow up, including himself...

          Best will be, an Admin will bundle his post to one or two threads in the right subforum
            Revolution 2.2.6
            • 43488
            • 5 Posts
            Your post is not very clear and I think you haven't really taken much time to read up on how MODx works before looking for help.

            That aside, I think what you want to do is create different templates, structured more or less like this:

            [[$header]]
            [[$nav]]

            <div id="content">
            <h1>[[*pagetitle]]</h1>
            [[*content]]
            </div>

            [[$footer]]

            That might do for your home page, then for internal pages where the layout is a bit different you can create one or more new templates for each layout:

            [[$header]]
            [[$nav]]

            <div id="content">
            <h1>[[*pagetitle]]</h1>
            [[*content]]
            </div>

            [[$sidebar-chunk]]

            [[$footer]]

            You can even show different layouts using a single template something like this:

            [[$header]]
            [[$nav]]

            <div id="content">
            <h1>[[*pagetitle]]</h1>
            [[*content]]
            </div>

            [[*parent:is=`6`:then=`
            [[$recent-articles]]
            `:else=`
            [[$sidebar-chunk]]
            `]]

            [[$footer]]

            That should get you started, but you'll soon realise there are multiple ways to do everything in MODx.