File

The File extension is intended to place an upload control within your Publish form just like you would a Text field or Drop-down List. Once enabled you will have the ability to create a new custom field of type File and associate it with an EE upload location.

image

Installation

  1. Upload ext.mh_file_ext.php to your system/extensions directory
  2. Upload lang.mh_file_ext.php to your system/lang/english directory
  3. Upload icons to your images directory
  4. In EE Navigate to the Admin » Utilities » Extensions Manager and Enable Extensions,
    if you haven’t already.
  5. Enable the File extension
  6. Create a new custom field by navigating to Admin » Weblog Administration » Custom Weblog Fields and choose File from the Field Type drop down

Configuration

There are several configuration options available. They are set within the Upload Location’s preferences. To change them navigate to Admin » Weblog Administration » File Upload Preferences. These settings are unique to each upload location making it possible to configure individual custom fields with unique thumbnail sizes or display options.

image

Control Panel Settings

File Settings

Template Tags

{images backspace="6"}

{if file_path}{file_path}<br />{/if}
{if file_thumb_path}{file_thumb_path}<br />{/if}

{/images}

Parameters

Single Variables

Variable Pairs

Download

Support (kind of)

Try the EE forum, it’s the best way to reach me!