We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39899
    • 8 Posts
    Hi I have a basic question. Creating a website with a TV - where the admin should be able to upload a file, the user can download. I created a tv - called pdf. It is shown in the template it is assigned to, and you can upload the pdf.

    The question is how to call this pdf the correct way. It does not seem to react the way I would like. I make the call to the TV in a chunk which is correctly implemented on the desired page. It is just the link which does not seem to be correct. The code I have put in the chunk is as follows:

    <a href="assets/files/[+pdf+]">download pdf </a>>
    and I have tried
    <a href="[+pdf+]">download pdf </a>


    I am sure it is rather basic, just never tried making a tv with a file before.

    Looking forward to your reply.

    This question has been answered by smashingred. See the first response.

    • discuss.answer
      • 27708 MODX Staff
      • 2,502 Posts
      Are you calling the TV by itself in a chunk? This isn't being processed by a Snippet? If so, the correct syntax should be [*pdf*] vs [+pdf+]

        Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup magician. Blog ✦ Twitter ✦ LinkedIn ✦ GitHub
        • 39899
        • 8 Posts
        Thank you so much - just the answer needed... !!