We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28215
    • 4,149 Posts
    This is an auto-generated topic for FileLister 1.1.0-rc1 by splittingred.

    Brief Description:

    A file-listing snippet for MODx Revolution.

    • Added homePathName property to filelister snippet for hiding the root path
    • Salted-hash, secure directory browsing
    • Path mapping
    • Secure downloading/viewing of files to logged-in users, usergroups
    • Fully templatable output
    • Various sorting modes
    • File extension restricting
    • Download counts for files

    New in 1.1.0-rc1

    • [#3] Add cls, altCls, firstCls, and lastCls properties for adding CSS classes
    • [#4] Add getPage support
    • Add property useGeolocation to toggle use of geolocation services on downloads
    • [#7] Update geolocation to new service, added system setting filelister.ipinfodb_api_key

    New in 1.0.1-rc1

    • Fixed bug that occurs with outputSeparator in some environments

    See the Official Documentation here:
    http://rtfm.modx.com/display/ADDON/FileLister
      shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
      • 7045
      • 225 Posts
      I have been racking my brain for a few days, and I give up. Right now when I test the various files and folders listed, I randomly get one of my custom error pages telling me the page is missing (when I know it’s there). If I go back to the previous page and try again, it is usually go to go.

      I have a pretty simple setup. I have 2 different fileListers, each behind a simple login. One is for one group of end-users and one for the other. The login has been working fine.

      We have a list of folders, in each folder we have sub-folders, and then in those we have the files. This never happens with the folders, just randomly with the sub-folders and files. Some sub-folders and files have the same name, so maybe that is throwing something off. However, they all originate from a different primary folder.

      [[!FileLister? 
          &path=`assets/templates/2010/misc_files/downloads/pdfs/current/` 
          &requireAuthDownload=`1`
          &allowDownloadGroups=`Current Projects Users`
          &fileTpl=`filelister_file_template`
          &fileLinkTpl=`filelister_link_template`
          &toPlaceholder=`files`
      ]]
      


      [[!FileLister? 
          &path=`assets/templates/2010/misc_files/downloads/pdfs/bidding/` 
          &requireAuthDownload=`1`
          &allowDownloadGroups=`Bidding Projects Users`
          &fileTpl=`filelister_file_template`
          &fileLinkTpl=`filelister_link_template`
          &toPlaceholder=`files`
      ]]
      
        • 7045
        • 225 Posts
        Is anyone familiar with FileLister?
          • 20407
          • 82 Posts
          &showDirectories=`0` doesn’t work for me, it still shows directories. Not sure where to post bugs for extras/add-ons.
            • 20407
            • 82 Posts
            Quote from: deniro0311 at Jan 08, 2011, 01:58 PM

            Is anyone familiar with FileLister?
            I’m no expert on FileLister, but regarding your issue, does it work correctly with just one FileLister call?
              • 7045
              • 225 Posts
              Thanks for the reply, but it appears to be working now. I had it on a sub-domain for testing, but I have since moved the site to it’s own hosting account. Maybe that had something to do with it? I figured the long generated URLs and maybe caching were playing a part in the errors.

              I am pretty much just guessing on the causes, as I am still learning this snippet. I will keep posting, as I know some other issue will arise.
                • 3749
                • 24,544 Posts
                Quote from: MrFussyfont at Jan 17, 2011, 12:37 PM

                &showDirectories=`0` doesn’t work for me, it still shows directories. Not sure where to post bugs for extras/add-ons.

                https://github.com/splittingred/FileLister/issues
                  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
                  • 14591
                  • 9 Posts
                  Quote from: MrFussyfont at Jan 17, 2011, 12:37 PM

                  &showDirectories=`0` doesn’t work for me, it still shows directories. Not sure where to post bugs for extras/add-ons.

                  I can confirm that, same to me.

                  and &showDownloads=`1` doesnt work: Link solved smiley


                  Best Regards jolic


                    42
                    • 27408
                    • 33 Posts
                    Is this a bug? In my directoryTpl,
                    <a href="[[+path]]">[[+filename]]</a>
                    returns something like
                    <a href="dir1/files\linkeddirname">linkeddirname</a>

                    I can’t load the next dir if the path has a wrong slash in it. So I would like it to return dir/dir/dirthatislinked. This is my call:
                    [[!FileLister? &path=`dir1/files/` &directoryTpl=`directoryTpl` &pathTpl=`pathTpl` &fileTpl=`fileTpl` &fileLinkTpl=`fileLinkTpl`]] 

                    I’m using MODX Revolution 2.1.0-rc3 with Filelister 1.1.0-pl.
                      • 37047 ☆ A M B ☆
                      • 309 Posts
                      Using FileLister 1.1.1 on a Revo 2.2.7pl site.

                      Having trouble using the first class property (+firstCls). Can't get it to display at all, anywhere. Is there an example somewhere on how/where to use the classes? It seems they used to display by default (in prior versions of FileLister), but no longer do?

                      Here's my post about the problem I'm having trying to alter the template for the first row only:
                      https://forums.modx.com/thread/87100/need-help-with-first-row-template-for-filelister-or-similar-solution
                        Lucy Iannotti
                        Following Sea design & development
                        http://www.following-sea.com
                        New Bedford, MA