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

    (@blue-liquid-designs)

    Hi Ian,

    You can’t. PDF templates need to be in the root of the PDF_EXTENDED_TEMPLATES directory for non-multisite installations.

    You can create a template in this location and then include templates from your sub folders using PHP’s include or require statements but you can’t do it through the PDF configuration.

    Thread Starter Ian

    (@iannich)

    I was beginning to think it wasn’t possible, thanks for the help. Maybe a future feature?

    Does the method described in effect allow me to create a main template file and then include sub templates, as in a modular approach? If so, i like the idea. 🙂

    Ian

    Plugin Author Jake Jackson

    (@blue-liquid-designs)

    It’s quite fixed on that structure (being in the root of the PDF_EXTENDED_TEMPLATES directory) so I don’t think it’ll make it’s way into the plugin. We do have a filter to change the location of the PDF_EXTENDED_TEMPLATES directory but that’s not really the same thing.

    Yes. We use that method all the time to add conditionals to the main template file and keep all the actual template content (HTML ect) inside sub directories. It keeps things cleaner and, as you’ve said, more modular.

    Thread Starter Ian

    (@iannich)

    Sounds great I’ll look into it,

    Thanks again,

    Ian

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Template Sub Folders’ is closed to new replies.