• Resolved rickvv

    (@rickvv)


    I am trying to control PDF’s. When visitor is not logged in, they should see this embedded ‘secure’ PDF, with the download button “off”.
    [pdf-embedder url="https://rickvv.com/ntwjazz/wp-content/uploads/securepdfs/2021/08/1972NTWJazzEuropeMemberBiography-1.pdf" title="1972NTWJazzEuropeMemberBiography" download="off"]

    But, when they’re logged in, they should see only THIS PDF (in a viewer with a download button) and not the ‘other’ PDF in that viewer.
    [content_control message="" roles="administrator,subscriber"] [pdf-embedder url="https://rickvv.com/ntwjazz/wp-content/uploads/securepdfs/2021/08/1972NTWJazzEuropeMemberBiography-1.pdf" title="1972NTWJazzEuropeMemberBiography" download="on"][/content_control]

    When user is logged in, he now sees both PDF’s. Is there a way to toggle that view, with your plugin?
    Thanks for any guidance…
    rickvv

    • This topic was modified 2 years, 7 months ago by rickvv.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support mark l chaves

    (@mlchaves)

    Hi @rickvv,

    For the first PDF (logged out view), you can wrap that with a content_control shortcode with logged_out="1".

    Here’s an example.

    
    [content_control logged_out="1" message=""]Logged Out View[pdf-embedder url="https://rickvv.com/ntwjazz/wp-content/uploads/securepdfs/2021/08/1972NTWJazzEuropeMemberBiography-1.pdf" title="1972NTWJazzEuropeMemberBiography" download="off"][/content_control]
    

    Can you give that a try?

    Please let us know how that works out.

    Cheers!

    Mark

    Thread Starter rickvv

    (@rickvv)

    I realized that I needed to wrap the first PDF with short code, and left the message=”” blank. (right after I posted this :/
    Now I just need to figure out how to force a refresh with the page after the visitor logs in…so that the “logged_in” view takes over.

    Thank you!

    Plugin Support mark l chaves

    (@mlchaves)

    Hey @rickvv,

    Understood.

    You’re very welcome. We’re glad to help.

    Have a great day 🙂

    Mark

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Toggle content when logged in’ is closed to new replies.