Given this piece of code, how do I display image height & width from an gride field ({portfolio_images})?
{exp:channel:entries channel="portfolio" sort="asc" require_entry="no" dynamic="no" limit="4" orderby="random" disable="member_data"}
{portfolio_images limit="1"}
img src=”{portfolio_images:file}” alt=”{site_name}” width=”{portfolio_images:width}” height=”{portfolio_images:height}”
{/portfolio_images}
{/exp:channel:entries}
Hello Matahi,
Try this..
{exp:channel:entries channel="portfolio" sort="asc" require_entry="no" dynamic="no" limit="4" orderby="random" disable="member_data"}
{portfolio_images limit="1"}
img src=”{portfolio_images:file}” alt=”{site_name}” width=”{portfolio_images:file}{width}{/portfolio_images:file}” height=”{portfolio_images:file}{height}{/portfolio_images:file}” >
{/portfolio_images}
{/exp:channel:entries}
LINCOLNPIXEL!!!!!
I thought I had already tried all the posible combinations, but this works.
{portfolio_images:file}{width}{/portfolio_images:file}
I owe you one.
Thank you very much!!!!!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.