We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7923
    • 4,213 Posts
    You could build the template to output an ordered list.. it will be numbered then.


      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
      • 7455
      • 2,204 Posts
      mm ok that is an idea but then how do i use the odd and even row styling?
        follow me on twitter: @dimmy01
        • 34123
        • 103 Posts
        Quote from: kylej at Oct 17, 2006, 02:16 PM

        Quote from: Frost at Oct 15, 2006, 06:40 PM

        When i use this, my chunk is not used by this snippet; is there an error in my Snippet Call ?

        what exactly is it doing? is it using the default layout? Make sure that your chunk name and the chunk name in the snippet call match exactly (remember case matters).

        Yes it’s using the default layout
          Configuration Apache + Modx + MSSQL 2008
          ===============================
          Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.8
          OS : Windows 2008 R2
          SGBDR : Microsoft SQL Server 2008 (express)
          • 15987
          • 786 Posts
          I have release FileDownload v2.0, get it here: http://modxcms.com/FileDownload-2.0-1097.html


          • Completly rewritten with ’OOP’ goodness.
          • Ability to specify multiple folders for display in one snippet call.
          • Expanded template support, now with templates for folders and files.
          • Ability to store download counts in databse or file.
          • Parameters to add custom classes to the templates (including extension class).
          • Extra placeholders available for more output options.
          • Image - Extension associations now stored in a chunk so you can set different images per snippet call.
          • Ability to use the download script without download counting.
          • The file size can be passed to the download script to display download progress.
          • And many other changes...

          Also check my site here for info and examples:
          http://www.muddydogpaws.com/notebook/filedownload-rewrite.html
          • Fantastic.
              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
              • 34123
              • 103 Posts
              Sorry but i have a question, i have this error message :
              Parse error:  syntax error, unexpected '<' in D:\Utilitaires\Travail\xampp\htdocs\modx\manager\includes\document.parser.class.inc.php(705) : eval()'d code on line 1
              

              with the basic call :

              [!FileDownload? &getFolder=`assets/snippets`!]
                Configuration Apache + Modx + MSSQL 2008
                ===============================
                Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.8
                OS : Windows 2008 R2
                SGBDR : Microsoft SQL Server 2008 (express)
              • Hi Frost, just remove the ’<?php’ from the start of the snippet and the ’?>’ from the end of the snippet and it’ll work just fine.
                  Garry Nutting
                  Senior Developer
                  MODX, LLC

                  Email: [email protected]
                  Twitter: @garryn
                  Web: modx.com
                  • 34123
                  • 103 Posts
                  Ji garryn,

                  Thks, now it works like charm (it’s like a new toy, i have to test it)
                    Configuration Apache + Modx + MSSQL 2008
                    ===============================
                    Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.8
                    OS : Windows 2008 R2
                    SGBDR : Microsoft SQL Server 2008 (express)
                    • 15987
                    • 786 Posts
                    I have removed the php tags from the download, so that error will no longer happen.
                      • 23383
                      • 138 Posts
                      Nice job !