EE 1
EE 2
Many Assets
Developer
3rd Party (Free)
Compatibility
- Multi Site Manager
- Stand Alone Entry Form
- Low Variables
- Better Workflow
- Matrix
Requirements
- jQuery for the Control Panel
Categories
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
- Fetch Assets assigned to multiple entries
- Fetch Assets assigned across multiple custom fields
- Matrix-compatible
- Easily fetch Assets outside of exp:channel:entries
Requirements
- PHP5
- EE 2.1.3 or later
- P&Ts; Assets 1.1 or later
Installation
- Be sure Assets is installed and configured to your liking
- 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, 10:30 am.
This entry was last updated January 1, 2012, 10:46 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!
There are no reviews for this add-on yet.
What are you waiting for? Rate it and review it!