• Resolved floz

    (@floz)


    Hi there,

    I have a POD that has a couple of fields of type “file”.

    Now, using the visual block editor to create my single-item template, how do I make clickable links to the files? Using the “Pods field value” block I only get the raw URL, but how do I turn this into a clickable link?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Paul Clark

    (@pdclark)

    Field Value block outputs a value of a field without extras.

    In the case of wrapping a URL in a link, instead use a Single Item block, which allows setting a template, such as:

    <a href="{@file_field_name._src}">
    {@file_field_name.post_title}
    </a>

    …which would output a link to the URL of the original file, using the name of the file as the text for the link.

    Thread Starter floz

    (@floz)

    Dear Paul – spot on, thanks very much!

    Best wishes!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.