We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17412
    • 270 Posts
    Hi,

    Snippet name = FileDownload
    Chunk name = FileDownloads

    I just reset the site cache - snippet call still not getting parsed sad
      • 7923
      • 4,213 Posts
      Try:

      [[FileDownload? &getFolder=`assets/js` &tplList=`FileDownloads` &useHlt=`1` &evenClass=`evenrow` &oddClass=`oddrow`]]


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 7455
        • 2,204 Posts
        are you using RTE? cause it will change the & into & in the source I alway put my snippetcals insite a chunk (must be a way that the snippets translate the & back to & or the parser maybe? you can never use & in RTE’s thats realy a pain
          follow me on twitter: @dimmy01
          • 7923
          • 4,213 Posts
          Parser can handle the &


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 17412
            • 270 Posts
            Quote from: doze at Oct 08, 2006, 07:07 PM

            Try:

            [[FileDownload? &getFolder=`assets/js` &tplList=`FileDownloads` &useHlt=`1` &evenClass=`evenrow` &oddClass=`oddrow`]]

            Thanks - that is now parsed - though not as expected:



            What’s going on here then huh
              • 15987
              • 786 Posts
              looks like there are extra spaces in your chunk FileDownloads in the placeholders. the placeholders need the extra space between the [ + removed. They should look like this: [+filename+]
                • 34123
                • 103 Posts
                Hi everybody,

                I have some difficulties to use your Snippet with my chunk :

                here is my chunk FileDownload
                    <div id='downloads'>
                        <table class='tbldwn' cellspacing='0'>
                            <tr>
                                <th>Filename</th>
                                <th>Link</th>
                            </tr>
                    <hr>
                            <tr>
                                <td>[+filename+]</td>
                                <td><a href="[+link+]">GO</a></td>
                            </tr>
                    <hr>
                        </table>
                    </div>


                Here is my call to your snippet

                [!FileDownload?getFolder=`assets/docs` &tplList=`FileDownload`!]


                When i use this, my chunk is not used by this snippet; is there an error in my Snippet Call ?
                  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)
                  • 17412
                  • 270 Posts
                  Quote from: kylej at Oct 10, 2006, 11:52 PM

                  looks like there are extra spaces in your chunk FileDownloads in the placeholders. the placeholders need the extra space between the [ + removed. They should look like this: [+filename+]

                  That fixed it smiley Thanks Kyle.
                    • 15987
                    • 786 Posts
                    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).
                      • 7455
                      • 2,204 Posts
                      is there an option to number the rows?

                      like
                      1-image-description-etc
                      2-image-description-etc
                      3-image-description-etc
                      4-image-description-etc
                      5-image-description-etc

                      dimmy
                        follow me on twitter: @dimmy01