CG FileInfo

Developer

Conflux Group, Inc. - Jeremy Gimbel

3rd Party (Commercial)


EE Version Support

  • ExpressionEngine 2

Compatibility

If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher

Requirements

  • jQuery for the Control Panel

Add-On Type(s)

Plugin

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 created September 13, 2011, 9:19 am.
This entry was last updated January 24, 2012, 9: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!

Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through devot-ee.com. If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at https://devot-ee.com/returns to initiate your return. If you have questions, email support@devot-ee.com.

2 Reviews:

Liam 12.08.11

Liam
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

Kyle Cotter
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.