We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6726
    • 7,075 Posts
    Definitely server related, I duplicated the install locally with MAMP 1.4.1 and it works flawlessly.
    At least I have a starting point now... anyone has an idea where to look as far as config is concerned ?

    I’ll check see if permissions are set differently locally, but not sure that’s the thing...
      .: COO - Commerce Guys - Community Driven Innovation :.


      MODx est l'outil id
      • 9695
      • 2 Posts
      Hello,
      I have some problems with the snippet. Indeed, i call the snippet and then on my page, there is no display... (no link toward files)
      here is my call:
      [!FileDownload? &getFolder=`assets/files/`!]

      can anyone light me?

      thanks
        • 15987
        • 786 Posts
        remove the / after files.
          • 6726
          • 7,075 Posts
          The problem I have is not related to a / at the end, plus it works locally on MAMP... this thing is driving me nuts undecided
            .: COO - Commerce Guys - Community Driven Innovation :.


            MODx est l'outil id
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Check the snippet call in raw html. I’ve had the rte add multiple & every time it sees a &. I’ve started putting all snippet calls in chunks where there is a snippet call in anything edited with the rte.
              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
              • 29181
              • 480 Posts
              Can anybody tell me why it’s not displaying the number of downloads?

              http://adrianlawley.com/downloads.html

              I presume it has something to do with the configuration of the plugin which currently looks like:

              &countDownloads=Count Downloads;list;yes,no;yes &useDbCount=Store Count Where;list;db,file;db


              If that is ok, then I’m calling it with:

              [!FileDownload? &getFolder=`assets/snippets/filedownload/downloads` &:countDownloads=1 &useDbCount=0 &browseDirectories=1 &chkDesc=DownloadDesc!]


              Thanks for any pointers.
              Taff
                Adrian Lawley: www.adrianlawley.com
                • 15987
                • 786 Posts
                try this:

                [!FileDownload? &getFolder=`assets/snippets/filedownload/downloads` &countDownloads=`1` &useDbCount=`0` &browseDirectories=`1` &chkDesc=`DownloadDesc`!]
                
                  • 29181
                  • 480 Posts
                  Hey,

                  thanks for the reply! I tried your suggestion, but to no avail. Do I need to set up a table in the database, or create a file somewhere for it to work?

                  I have put the site back online so you can see. Grateful for anymore help you can offer. It’s tough being a newbie huh

                  Thanks again,
                  Taff
                    Adrian Lawley: www.adrianlawley.com
                    • 22303 MODX Staff
                    • 10,725 Posts
                    With the plugin configured, I think you should be able to just call it like so:

                    [!FileDownload? &browseDirectories=`1` &chkDesc=`DownloadDesc`!]
                      • 29181
                      • 480 Posts
                      Thanks for answering,

                      I tried you suggestion without any success, I also tried

                      [!FileDownload? &getFolder=`assets/snippets/filedownload/downloads` &browseDirectories=`1` &chkDesc=`DownloadDesc`!]


                      because I need to target the Directory where my downloads are.

                      Might it not be displaying because I need to change something in the template, or will it be parsed automatically?

                      Do I need to set up any table in the db where the download info is going to be stored?

                      Cheers,
                      Taff
                        Adrian Lawley: www.adrianlawley.com