We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40088
    • 708 Posts
    I'm a new guy so bear with me.

    I have 2 resources, one which needs to act as a folder for the other file as it did when it was part of a static site.

    folder
    ++file

    I enabled the 'Container' setting for the 'folder' resource then I made 'folder' the Parent of 'file'.

    In the doc tree it looks right.

    What I expected to see when I previewed 'file' was the url to be formatted as

    http://somesite.com/folder/file

    instead it looks like

    http://somesite.com/file

    Is this not how things work with MODX or am I overlooking the obvious?

    Thanks
      Todd
    • Quote from: todd.b at Jun 15, 2012, 11:26 PM


      What I expected to see when I previewed 'file' was the url to be formatted as

      http://somesite.com/folder/file

      instead it looks like

      http://somesite.com/file

      Is this not how things work with MODX or am I overlooking the obvious?

      Thanks

      Nope, that's now how it works in MODX. The resources, no matter how deep in your resource tree will always show as yoursite.com/resourceAlias

      If you placed your MODX site in a subfolder of the root, then you'd see a path like you described above but again, all your resources would append the subfolder name with the single page's alias (or php=id if FURL's is not enabled).

      Is there a reason you need the url to display that way? In your menus, the structure will be as it's shown in the resource tree. So, when you use Wayfinder to create a menu on the site, your page will show as a sub page of it's parent automatically.

      If you need to show the structure as your users drill down into the site, you can use the breadcrumbs add on to display the structure on the page itself.
        Frogabog- MODX Websites in Portland Oregon
        "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
        Having server issues? These guys have MODX Hosting perfected - SkyToaster
        • 40088
        • 708 Posts
        Quote from: frogabog at Jun 16, 2012, 06:10 AM

        Is there a reason you need the url to display that way?

        No reason other than that is what I was accustomed to seeing with the static site. I just wanted to be sure I wasn't doing something wrong. It's all good.

        Thank you for your explanation.
          Todd
        • All you need to do is enable the use_alias_path System Setting under the Friendly URLs area.

          You can also manually set specific URI's per Resource and freeze those so they do not change based on alias, path, etc.
            • 40088
            • 708 Posts
            Quote from: opengeek at Jun 18, 2012, 02:48 PM
            All you need to do is enable the use_alias_path System Setting under the Friendly URLs area.

            Thank you. I stumbled upon this the other day after I enabled Friendly URLs.
              Todd