We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 45114
    • 15 Posts
    Good day.
    I have next structure of the menu
    <ul>
        <li>doc level1 1</li>
        <li>doc level1 2</li>
        <li>doc level1... n</li>
        <li>
            <ul>
                <li>doc level2 1</li>
                <li>doc level2 2</li>
                <li><ul>
                        <li>doc level3 1</li>
                        <li>doc level3 2</li>
                    </ul>
                </li>
            </ul>
        </li>
        <li>doc level1... n+1</li>
    </ul>
    

    and I want insert navigation bar like: when I press "next" I will go from level1...n to level2 1. Than from level3 2 to level1...n+1.
    I tried to use sublingNav but it works only on one levels. For example from level...n I go to level...n+1 and skip all sublevels.
    What should I do?
      • 9207 ☆ A M B ☆
      • 2,475 Posts
      This sounds like a really custom use case... I don't know if there's an easy way to build this, and I certainly wouldn't expect to find something off-the-shelf for it. Maybe you could do this by feeding a "parent" parameter to a getResources or a Wayfinder call?
        • 45114
        • 15 Posts
        Can you give me some examples please? With wayfinder I made menu, but I realy don't know how use it to make navigation in document tree. I read that this problem can be solve by php function, but I don't have knowledge about it(
          • 9207 ☆ A M B ☆
          • 2,475 Posts
          I can't post examples because what you've asked for is essentially a 100% custom implementation -- I would have to code an entire solution for you, and this looks like it would be quite difficult. I would strongly recommend that abandon this approach and instead use a conventional menu, especially if you're not solid on PHP and Javascript. It will be much much easier in my opinion.
            • 45114
            • 15 Posts
            Thank you for participation. I tried to do it for three days and I'm going to madness with this menu. It's look like well without it, and let it be!
              • 3749
              • 24,544 Posts
              I wonder if this is the kind of menu you're talking about: http://bobsguides.com/modx.html (or if it would work for you instead of what you planned)?
                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
                • 45114
                • 15 Posts
                May be it will help to some one. I think I was going by easiest way. I made couple TV like url and add it to template. Unfortinatule now I should write url for every post, but it's working as I want))