We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8471
    • 333 Posts
    Hi, I have create some folders as category for my downloads, and in my template for filedownlaod there is the download count. Of course the download count doesn’t work for folders, but seems that there aren’t any download in my folders because download count show: "download: 0".
    So I want to remove download count for folders and use it only for single files. How can I do?
    Thanks to all
      Sorry for my bad English grin
      • 15987
      • 786 Posts
      Edipo,
      There currently is not a way to style folders differently than files. I will put this down on my list of things to add.

      Kyle
        • 22358
        • 11 Posts
        Please explain step by step how I would use this snippet after I added it. I have no idea how to call it. Please help.
          • 15987
          • 786 Posts
          Origin,
          I will give you a brief how-to, and some links to other info on how to use this.

          First, there is a lot if info on my website on the different parameters and how things work:

          http://www.muddydogpaws.com/notebook/file-download-snippet

          Second, I wrote a styling tutorial here:

          http://modxcms.com/forums/index.php/topic,3124.msg30554.html#msg30554

          So a quick tutorial:

          1. Install the snippet
          2. create a document where you want to display a list of files.
          3. Setup a folder on your server where you have files for download. (for this example we will use assets/files)
          4. Insert the snippet call like the following:
          [!FileDownload?getFolder=`assets/files`!]

          5. Thats all you need to do.

          If you want it to look different review the style post I have above. There are also many other parameters you can use and they are detailed included readme and on my website.

          Kyle
            • 22358
            • 11 Posts
            Where do I insert the snippet call¿
              • 15987
              • 786 Posts
              Quote from: Origin at Jun 25, 2006, 09:04 AM

              Where do I insert the snippet call¿

              You can insert the snippet call in the content field of a document
                • 22358
                • 11 Posts
                Thank you, and I am sorry for being a noob grin
                  • 15987
                  • 786 Posts
                  No problem, we all need to start somewhere. smiley
                    • 7455
                    • 2,204 Posts
                    I realy like this snippet great work on this one.

                    I have a feature request:
                    would be nice if we had a search funcktion.
                    I will use this snippet to show mp3 files (sermans from our pastor)
                    so now its not to much but in 1 or 2 year it wil be much more 52 each year if only one serman a week

                    The flexseachform can not find anything cause it does not look insite the discription chunk (or any chunk) mm typing this now I realise that I use a lot of chunks to display things like adres etc that is also not found.
                    maybe flexsearch needs an option to look insite of chunks? but how does it know on what page this is used...

                    lol lots of isseus

                    but mabe we could focus on this snippet? an option to search insite the list?
                      follow me on twitter: @dimmy01
                      • 28042 ☆ A M B ☆
                      • 24,524 Posts
                      Use TVs instead of chunks. Those can be searched.
                        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