Support » Plugin: DK PDF » [dkpdf-remove] – [dkpdf-add]? as an option to display special pdf content

  • Resolved Sebastian

    (@afu24)


    Hi!

    First of all I want to say thank you for this great plugin and its easy way to handle and customize it. Awesome!!

    Two short question about using the Shortcode [dkpdf-remove]:

    1. Is there an option / hack to have [dkpdf-remove] the other way round? Saying for example [dkpdf-add], so that I can point content to be displayed in the PDF Version only and not on the page.

    2. The Shortcode [dkpdf-remove] breaks the excecution of other shortcodes inside (Nothing is shown just the original shortcode). Isn’t that option provided? or could I fix this?

    For Example:
    Formidable [dkpdf-remove][formidable id=3][/dkpdf-remove] >> Shows [formidable id=3] in the page
    Easing Slider too
    Bootstrap Shortcodes too

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author dinamiko

    (@dinamiko)

    Hi Afu24, sorry for the delay,

    right now the only way to add more content to the PDF is using dkpdf_before_content and dkpdf_after_content filters, you can add these filters in your theme functions.php

    here you’ve an example how to use it:
    https://gist.github.com/Dinamiko/b368196b17c8583085f4#file-dkpdf_before_content-dkpdf_after_content-php

    but yes, I’m going to start thinking about implementing [dkpdf-add] 🙂

    Thanks,
    Emili

    • This reply was modified 5 years, 4 months ago by dinamiko.
    Plugin Author dinamiko

    (@dinamiko)

    about this:
    2. The Shortcode [dkpdf-remove] breaks the excecution of other shortcodes inside (Nothing is shown just the original shortcode). Isn’t that option provided? or could I fix this?

    [dkpdf-remove] was implemented and tested for deleting raw content only, not for deleting other shortcodes. I didn’t test removing nested shortocodes ( [dkpdf-remove][formidable id=3][/dkpdf-remove] for example), but definitivelly this is something that I’m going to think about in a next version of the plugin.

    Thanks,
    Emili

    • This reply was modified 5 years, 4 months ago by dinamiko.
    • This reply was modified 5 years, 4 months ago by dinamiko.
    Plugin Author dinamiko

    (@dinamiko)

    Hi Afu24,

    I’ve added a param ‘tag’ (the name of the shortcode you need to remove) to dkpdf-remove:
    http://wp.dinamiko.com/demos/dkpdf/doc/dkpdf-remove-shortcode/

    Thanks,
    Emili

    Thread Starter Sebastian

    (@afu24)

    Hi Emili,

    thanks for your reply and new update.

    Looking forward for an easy possibility to add content [dkpdf-add], as [dkpdf-remove] works like charm and already does what mentioned.

    The option to have nested shortcodes excecuted right in the content and still work inside the shortcode for example [dkpdf-remove] would be an awesome feature too.

    Could I contact you directly for developing this features? and afterwards make it accessable for all users?

    Greeting,
    Sebastian

    • This reply was modified 5 years, 3 months ago by Sebastian.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[dkpdf-remove] – [dkpdf-add]? as an option to display special pdf content’ is closed to new replies.