Many Assets

Developer

John D. Wells

3rd Party (Free)


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

Retrieve P&T Assets from across many entries, and/or across many custom fields.

Simply pass a pipe- or comma-delimited list of entry ids, add parse=“inward”, and be on your way.

     
  • Version 1.3.2 (consider beta until I say otherwise)

Features

     
  1. Fetch Assets assigned to multiple entries
  2.  
  3. Fetch Assets assigned across multiple custom fields
  4.  
  5. Matrix-compatible
  6.  
  7. Easily fetch Assets outside of exp:channel:entries

Requirements

     
  • PHP5
  •  
  • EE 2.1.3 or later
  •  
  • P&Ts; Assets 1.1 or later

Installation

     
  1. Be sure Assets is installed and configured to your liking
  2.  
  3. Copy the many_assets folder to ./system/expressionengine/third_party/

Required Parameters

entry_ids=”...”

A pipe- or comma-delimited list of entry IDs.

parse=“inward”

This is required for the plugin to parse in the correct order.

Optional Parameters

Accepts all of Asset’s (http://pixelandtonic.com/assets/docs/templates), plus:

fields=”...”

A pipe- or comma-delimited list of fields that the lookup should be _limited_ to.

Prefix with not to exclude fields.

The format of each field is: channel_name:field_name, and in the case of a Matrix column, channel_name:field_name:column_name.

Usage Examples

Basic

{exp:many_assets entry_ids="420|1976|2011" parse="inward"}
 ...
{/exp:many_assets}

Exclude custom field

{exp:many_assets entry_ids="420|1976|2011" fields="not page:cf_leading_image" parse="inward"}
  ...
 {/exp:many_assets}

Limit to field name & matrix col

{exp:many_assets entry_ids="420|1976|2011" fields="page:cf_page_slideshow|page:cf_page_matrix:file" parse="inward"}
  ...
 {/exp:many_assets}

Combined with Playa and CE Img

{exp:many_assets entry_ids="{exp:playa:parent_ids entry_id='420'}" parse="inward" prefix="asset" limit="5" orderby="random"}

  {exp:ce_img:pair src="{asset:server_path}" width="450" height="320" crop="yes" allow_scale_larger="yes"}
   <figure>
    <img src="{made}" width="{width}" height="{height}" alt="" />
    {if asset:caption}<figcaption>{asset:caption}</figcaption>{/if}
   </figure>
  {/exp:ce_img:pair}
  
 {/exp:many_assets}

 

Many Assets Links

This entry was created December 20, 2011, 9:30 am.
This entry was last updated November 1, 2013, 12:08 pm.

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.

There are no reviews for this add-on yet.

What are you waiting for? Rate it and review it!