We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3689
    • 264 Posts
    I would like to add 1 upload field to a template so admins can upload a pdf or a file to the page if there is any to upload.. Instead of the file bein shown I just want the file URL so it can be clicked and the file downloaded.. how do i do this?
      • 15082
      • 195 Posts
      A TV might be handy:

      With input type "file" the MODx filebrowser is activated for the TV and editors can upload and select files.

      To output the path to the file use the TV placeholder [*myFile*] or whatever you’ve named it to build up a valid URL.

      Greetz
      JUSI
        • 3689
        • 264 Posts
        Quote from: jusicgn at Oct 30, 2009, 05:49 AM

        A TV might be handy:

        With input type "file" the MODx filebrowser is activated for the TV and editors can upload and select files.

        To output the path to the file use the TV placeholder [*myFile*] or whatever you’ve named it to build up a valid URL.

        Greetz
        JUSI
        im trying to upload a pdf file.. im gettin this: Error, "Failed to upload file, internal error..."
          • 3689
          • 264 Posts
          any1 know how i can fix this?
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            The problem is, this could be from a large number of causes. Can you upload pdf files to the assets/files folder using the Manager’s file manager?
              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