Saltar navegación

[Cerrado] Toolset File Preview (PDF-Preview)

This support ticket is created 4 years, 4 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.

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Nigel 4 years, 4 months ago.

Autor
Mensajes
#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:
enlace oculto

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
Colaborador

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+01: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/).

El debate ‘[Cerrado] Toolset File Preview (PDF-Preview)’ está cerrado y no admite más respuestas.