We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

File Type Templates Module

Development and Programming

silenz's avatar
silenz
1,648 posts
17 years ago
silenz's avatar silenz

The File Type Templates module is certainly not useful for everyone. But it might come in handy in certain situations.

What it does basically is to complement the standard “EE Upload File/Embedded in Entry” funtionality. You know, when you upload a browser-supported image type and choose Embedded in Entry, Expression Engine provides the necessary HTML-code to display it, namely an <img>-tag. When you upload anything else and choose Embedded in Entry, Expression Engine provides just a link to the file.

This module lets you define your own template for any non-image filetype which will then replace links to files of that type in your entries.

You might want to take a look at the usage examples to better understand what this is about.

       
Andy @ Pillory Barn's avatar
Andy @ Pillory Barn
130 posts
15 years ago
Andy @ Pillory Barn's avatar Andy @ Pillory Barn

This seems to be a perfect fit for a project I’m working on.

The client will want to be able to upload several different file formats (Word, PDF, PowerPoint, .csv, etc.) for use in a file library.

I’m using the NB CSV to Table plugin by Nicolas Bottari which converts a .csv file into a table, by way of a tag pair. I take it this module isn’t designed to allow other plugins to work inside the templates made for it?

It’s not a major problem, more of a convenience if it could.

       
msfarrel's avatar
msfarrel
33 posts
15 years ago
msfarrel's avatar msfarrel

Is this plugin compatible with 1.6.9? It sounds awesome for embedding video however I can’t get the template to replace the flv. Code looks like this:

{exp:weblog:entries weblog="{segment_1}" url_title="{segment_3}" limit="1"}
    {exp:ft_templates}
        {video}                            
    {/exp:ft_templates}
{/exp:weblog:entries}

I’ve tried weblog specific and non-specific templates but the template is just ignored and the output is just the file path. Any ideas??

Thanks

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.