We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19943
    • 14 Posts
    How does one create a page that is a download? And then create a page that lists several of those pages?

    For example, I have uploaded a bunch of pdf files to a folder using the file manager. But they don’t show up in the resource listing. Do I have to make a separate web link for each file? And if I do, can I not add a short description of each one, like the introtext for a normal document?

    Then, if I want to have a page listing those documents, do I have to manually create it?
      • 3749
      • 24,544 Posts
      Someone else may have a better answer, but they’re files, not documents so they have no description.

      You can write a snippet to read the directory and display them as links for download (I have some example code for this if you need it), but there won’t be any descriptions.

      Or you can create a page manually with links and descriptions -- harder to maintain but easier on the user.

      You could also modify the upload process so that it would add new files and their descriptions to the download document or add the filename and description to the database and then create a snippet that would read those and create the download page on the fly, but that would be more work for you up front.

      Bob
        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
        • 28042 ☆ A M B ☆
        • 24,524 Posts
          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
          • 19943
          • 14 Posts
          Thanks, all. I am doing it with a ditto call, after making individual docs for each downloadable file. That works pretty well, but I’m now having the horrific issues with the Resource Browser, as I documented in a new thread: http://modxcms.com/forums/index.php/topic,23371.0.html

          If whoever wrote the FileDownload plugins wants to really get busy, they could add the ability to template the outputs to include some descriptive text.
            • 12027
            • 63 Posts
            I’m using FileDownload, works a charm smiley

            Only one snag in that it puts the Parent link between the table titles and the list... I’d like to have an icon next to the current path instead of wasting a table row, haven’t solved that one yet.

            But it definitely will allow you to make download pages and style them.