We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5982
    • 2 Posts
    I’ve found that if I have two layers of nested folders, DropMenu stops working correctly if I burrow too deep.

    For instance, I have a main portfolio page that shows up as portfolio.html but it is set as a folder in MODx.
    If I go into the ’websites’ folder from this page, it shows up as portfolio/websites.html. So far so good.

    Now, however, when I try to go to any other section from the DropMenu, all the links are prefaced from portfolio/ --
    portfolio/home.html, portfolio/portfolio.html, etc. Am I just not defining the root of the site correctly somewhere? Is there a newer version of DropMenu that fixes this problem?
    • This is more of a problem with the site’s configuration and using "friendly alias path". The menu snippets actually just call the main parser to generate the links, and the parser determines whether to make basic "index.php?id=1" links, or to use alias and make "home.html" links, or to use friendly alias path and add the alias of the parent to the link. It often doesn’t work too well. I would suggest not using "friendly alias paths" in your configuration.
        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
        • 7923
        • 4,213 Posts
        have you tried putting <base href="[(site_url)]"> to the <head> of your template?


          "He can have a lollipop any time he wants to. That's what it means to be a programmer."
          • 5982
          • 2 Posts
          Adding that to the header worked like a champ. Thanks doze!