Shortcodes are not displayed

WordPress
9 June, 2020 03:14:03
ahmadkholil
Topics: 2
Messages: 6
I added it to the elementor with a short code. The short code of e2pdf can be displayed and downloaded normally in elementor, but it cannot be displayed on the website.
9 June, 2020 03:35:46
E2Pdf
Support
Topics: 7
Messages: 3163
Hi,

It's no need to add dataset="[id]" while using shortcode on WordPress page, it will add it automatically depending on current page. If you added shortcode [e2pdf-download id="4"] and its truncated, it could be that page has different type from what you set under E2Pdf Template. (screenshot attached)

If you will not be success with changing item under E2Pdf Template, can you let us know the URL of page where you are trying to generate download link?

We remain at your service.


We would really appreciate your feedback at WordPress.org!
10 June, 2020 07:41:15
E2Pdf
Support
Topics: 7
Messages: 3163
Unfortunately we still can't replicate issue on our side. If it's acceptable for you, can you please submit support ticket here please: https://e2pdf.com/support/request with access details to admin dashboard so we can make some more tests directly on your installation as issue can be caused by plugins conflict or some specific settings? Thank you.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
11 June, 2020 05:35:05
ahmadkholil
Topics: 2
Messages: 6
You are right, it is caused by the plug-in, I would like to ask another question, if I want to open the window that I set by javascript window.open(), what should I do?? The window brings the ID value to the newly opened screen, thank you.
11 June, 2020 07:14:06
E2Pdf
Support
Topics: 7
Messages: 3163
Can you please clarify what do you mean by window.open()? Do you need to show PDF in tab instead of download action? If so, it can be done by setting: "Inline" option while editing E2Pdf Template. (screenshot attached)

If it's something else, can you please share the example screenshots or link so we can understand the task. Thank you.

We remain at your service.


We would really appreciate your feedback at WordPress.org!
11 June, 2020 19:41:15
ahmadkholil
Topics: 2
Messages: 6
I made a picture, it should be clear! Thank you. :)
11 June, 2020 23:31:07
E2Pdf
Support
Topics: 7
Messages: 3163
Thank you.

It looks like possible to accomplish this task by adding output="url" as attribute to shortcode:

Example:
<a href="#" onclick="window.open('[e2pdf-download id="40" output="url"]', 'test','width=1200,height=700');return false;">Download</a>

"Inline" option must be set on E2Pdf Template.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
12 June, 2020 17:31:00
ahmadkholil
Topics: 2
Messages: 6
Sorry i want to ask 2 more questions
1. When e2pdf is loaded, there is no message, can you add a message similar to loading...

2. The tool in the red box, I can control what to display, don't want anything?
12 June, 2020 22:49:32
E2Pdf
Support
Topics: 7
Messages: 3163
Unfortunately when you are using "inline" option and the way PDF loaded, it's controlled and showed by built-in viewer in browser and it can't be changed.

We have [e2pdf-view] shortcode which uses pdf.js and can be used for example with hide="toolbar" attribute but it will not fit your needs as you need to open it in popup + it's not yet available option to add loading text.

As a solution you can prepare custom pdf.js viewer: https://mozilla.github.io/pdf.js/getting_started/ and load it on your own way, however it will require knowledge of javascript to modify it + add possibility to pass url to opened popup window.

We remain at your service.


We would really appreciate your feedback at WordPress.org!