• Resolved kslingsby

    (@kslingsby)


    Rather than embedding one particular pdf on a page, I’d like to be able to embed different pdfs depending on a parameter in the URL.

    For example https://domain.co.uk/?doc=fred would embed fred.pdf

    I’ve tried using the URL Params plugin to do this, but it fails because it doesn’t like one shortcode embedded in another.

    Any thoughts on how/if I can do this?

Viewing 1 replies (of 1 total)
  • danlester

    (@danlester)

    To be honest, I think the best way would be to ask your developer to custom code this in to your site somehow, to suit your needs. But you could use the URL Params plugin if you are able to list all the possible PDFs.

    For example:

    [ifurlparam param=”doc” is=”fred”][pdf-embedder url=”…fred…”][/ifurlparam]
    [ifurlparam param=”doc” is=”bob”][pdf-embedder url=”…bob…”][/ifurlparam]

    Please get in touch via our support email address for any further questions as I may not pick up replies here.

    Thanks,

    Dan

Viewing 1 replies (of 1 total)
  • The topic ‘Select different pdfs on one page’ is closed to new replies.