Skip Navigation

[Closed] Toolset File Preview (PDF-Preview)

This support ticket is created 3 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 3 years, 11 months ago.

Author
Posts
#2295415

Tell us what you are trying to do?
We created a WP-Instance to sign our internal documents together with some workflow plugins. Sadly, there is no possibility to watch a preview of the document in the backend. So there is only a URL to the PDF-File, which my colleagues have to rightclick-open in a new tab.
It would be amazing if there would be some preview pictures or at least some clickable link to the PDF.

Is there any documentation that you are following?
I tried this out, but sadly I didn't get it working:
https://toolset.com/forums/topic/preview-screenshot-of-uploaded-file-on-front-end/
I added the code to my functions.php but nothing changed.

Here is a preview of what I'm thinking of:
hidden link

It is an internal side only so i can't give u access, you could connect via TeamViewer to my computer for example.

Best Regards
Martin J. Brucker

#2295625

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

You want to display PDF field value as a link in the back-end editing pages, yes?

You could do that by writing some JavaScript which added a new clickable link below the field using the field value as the href attribute.

Although the code is fairly simple, because this is a back end post edit screen, you would need to add the code to a .js file and enqueue that using admin_enqueue_scripts (see https://developer.wordpress.org/reference/hooks/admin_enqueue_scripts/).

The topic ‘[Closed] Toolset File Preview (PDF-Preview)’ is closed to new replies.