Viewing 3 replies - 1 through 3 (of 3 total)
  • As far as i know this feature is not present at the moment.
    You can provide your own template, copying the relevant files to your theme folder to be taylored and adjusted, but you can’t switch to different templates for different contexts.
    However, with a bit of PHP you can set conditional expression in the template files themselves.
    Or you can leverage the action hooks the plugin provides to branch to different files depending for example on the post_type. This way you can in fact craft the functionality yourself.

    Antonio

    Plugin Author dinamiko

    (@dinamiko)

    Hi danatupserve,

    yep, as @balubino said, you can do a template customization and add your logic in the PDF template, more info here: https://wp.dinamiko.com/demos/dkpdf/doc/how-to-use-dk-pdf-templates-in-your-theme/

    then in the dkpdf-index.php template you can something like this:

    if( is_page('foo') { // or any other logic, of course :)
       echo 'this';
    } else {
       echo 'that';
    }

    Thanks,
    Emili

    Thread Starter danatupserve

    (@danatupserve)

    Thanks guys, that’s precisely what I ended up doing.

    Cheers!

    -Dan

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Multiple Templates?’ is closed to new replies.