We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11413
    • 203 Posts
    Hi,

    I wanted to use a directory for each subsections of my website. I thought that linking to the directory itself would redirect me to the first child of the directory (because when you create a directory, you can’t add any content to it, but if you modify the directory, then you can juste change it to a document with content...), a kind of index.html for MODx... but it seems that i was wrong... Instead of that, i have to ’hard code’ a document inside the directory and link to it directly. i would really appreciate if there was a way to redirect (at least!) to the FIRST child of the directory instead of showing a blank page smiley

    any hints??

    Thanks a lot in advance,

    Blaise Bernier
      Blaise Bernier

      www.medialdesign.com - Solutions for small business, hosting, design and more!
      • 22303 MODX Staff
      • 10,725 Posts
      Search for first child in the forums. Here’s a recent thread on the subject:

      http://modxcms.com/forums/index.php/topic,1394.0.html

      Hope that helps.
        • 11413
        • 203 Posts
        yeah, I think i’ll be able to find a work around, but don’t you think it should be a core feature?? a directory without any content should link the the first child... anyway, a directory is a container, not a page with some content... no?
          Blaise Bernier

          www.medialdesign.com - Solutions for small business, hosting, design and more!
          • 18397
          • 3,250 Posts
          Folders can have content. For some reason at the moment though, the create folder page hides the content field... When you go to edit a folder you can add or modify content easily.
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Folders are documents like any other document in the database, the only difference is that the is_folder field is 1 instead of 0, and other documents will have the folder’s id as their parent. Otherwise, there is no difference. The structure is actually flat, the "tree" is only virtual. A very clever and minimal way of providing organization to content.
              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