Plugin

EE 1
EE 2
CG FileInfo

Developer

Conflux Group, Inc. - Jeremy Gimbel

3rd Party (Commercial)


Compatibility

Requirements

  • jQuery for the Control Panel

Tags

CG FileInfo is a plugin which gives you direct access to the native File Manager's image sizes and metadata when using a file field. Just pass your file field to the plugin and you'll be able to get all of your specified image sizes without using the File Module.

Note:

As of ExpressionEngine 2.4, the features of CG FileInfo are built into the core.

ExpressionEngine’s new File Manager stores a variety of information about your uploaded files. While custom file fields use the File Manager, the stored metadata is only accessible via the File Module. Currently, there is no way to access all of the file metadata from within the Channel Entries loop. CG FileInfo is a plugin which aims to solve this problem, by giving you direct access to the native File Manager’s metadata within your templates.

Using a simple template tag pair, CG FileInfo gives you access to 11 additional metadata variables plus any image manipulations performed by the ExpressionEngine File Manager.


{exp:channel:entries entry_id="1" dynamic="no"}

<h4>File</h4>
{file}

{exp:cg_fileinfo file="{file}"}
 
 <h4>Mimetype</h4>
 {mime_type}

 <h4>Thumbnail</h4>
 {thumbnail}

 <h4>Caption</h4>
 {caption}

 <h4>Size (human-readable size)</h4>
 {size} ({human_size})

 <h4>Upload Date</h4>
 {upload_date format="%M %d %Y"}

 <h4>Height and Width</h4>
 {height} x {width}

 <h4>Is it an image?</h4>
 {if is_image}
  I say yes.
 {if:else}
  I say no.
 {/if}

{/exp:cg_fileinfo}
{/exp:channel:entries}

CG FileInfo Links

This entry was last updated January 24, 2012, 8:30 am.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. Devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

2 Reviews:

Liam 12.08.11

Rating - {addon_rating_average}

Worth mentioning that this plugin works perfectly with Matrix based galleries with multiple images in one field. Great stuff - 5star.

Kyle Cotter 09.13.11

Rating - {addon_rating_average}

This addon does as advertised. It’s nice to have access to the File Manager’s variables and resized images within a Channel Entries Loop. Highly recommend it if you want to use such functionality.