• Resolved eoinkennedy

    (@eoinkennedy)


    Hi,

    Is it possible to have a different Attachment Template based on the attachment type?

    I am using the Embed Any Document plugin to display attachments in the posts, and the shortcode in Posties attachment template looks like this:

    [embeddoc url=”{FILELINK}” download=”all” viewer=”microsoft”]

    Users send either ODT or PDF files with their posts, but neither preview provider that EAD uses supports both formats, so I was hoping to have a different shortcode for PDF’s using Google:

    [embeddoc url=”{FILELINK}” download=”all” viewer=”google”]

    If it’s not possible, then thank you for a great plugin anyway.

    Eoin

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

The topic ‘Different template per attachment type’ is closed to new replies.