Retrieve Pixel&Tonic's 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.
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.
Accepts all of Asset's documented parameters, 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
.
{exp:many_assets entry_ids="420|1976|2011" parse="inward"}
...
{/exp:many_assets}
{exp:many_assets entry_ids="420|1976|2011" fields="not page:cf_leading_image" parse="inward"}
...
{/exp:many_assets}
{exp:many_assets entry_ids="420|1976|2011" fields="page:cf_page_slideshow|page:cf_page_matrix:file" parse="inward"}
...
{/exp:many_assets}
{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="https://github.com/johndwells/Many-Assets/raw/master/{asset:server_path}" width="450" height="320" crop="yes" allow_scale_larger="yes"}
<figure>
<img src="https://github.com/johndwells/Many-Assets/raw/master/{made}" width="{width}" height="{height}" alt="" />
{if asset:caption}<figcaption>{asset:caption}</figcaption>{/if}
</figure>
{/exp:ce_img:pair}
{/exp:many_assets}