We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33982 ☆ A M B ☆
    • 476 Posts
    I’m trying to list directories and files (i.e. .doc, .pdf, etc.) and wasn’t sure if anyone else had come up with a snippet for this functionality.

    Basically I’ll be uploading files into about 4 different directories in the Manager area of MODx...no problems with this. Then I need for registered users to be able to login on the frontend of the MODx site via the Webuser snippet and navigate over to a document where they can see all the directories and file listed out. My goal is for the Web User on the frontend to be able to click on a given file and download it. I’ll also need to be able to specify the parent directory in the Snippet. So if I specify in the snippet that Folder X will be the parent directory, only the children directories and files will show up for Folder X. Hope that makes sense. Unfortunately I stink at PHP, but I was hoping someone else had pulled this off before.
      Precision Web Development ... SmashStack.com
      • 27330
      • 884 Posts
      isn’t FileDownload does just what you need?
      this is what I have here if you wanna take a look:
      http://smartsecuritycamera.com/product-brochures.html
        • 33982 ☆ A M B ☆
        • 476 Posts
        Wow...perfect...that should do the trick. Thanks for pointing that out! I’ll give it a spin.
          Precision Web Development ... SmashStack.com
          • 27330
          • 884 Posts
          np. you also want to check FileDownloadPE
          http://modx.scottydelicious.com/blog/2008/06/15/filedownloadpe
            • 33982 ☆ A M B ☆
            • 476 Posts
            Great...even better! I’ll check that one out as well. Thanks again for pointing these out.
              Precision Web Development ... SmashStack.com