Probably entirely my fault for having something so convoluted…
But I’m running a Low Variables with a Matrix field, and basically trying do this:
{exp:gwcode_fileinfo:single file="{slider_image:homepage_slider}"} <img src="{file_url}" alt="" data-width="{image_width}" data-height="{image_height}"> {/exp:gwcode_fileinfo:single}
However, it’s returning “file not found” (I’ve verified that {slider_image} is indeed valid and working)...
I broke out the code and used your default example for testing, and all instances return “file couldn’t be found!”
{exp:low_variables:pair var="lv_homepage_slider"} <div class="slide"> {slider_image} {exp:gwcode_fileinfo:single file="{slider_image}"} {if file_not_found}The file couldn't be found!<br />{/if} File full path: {file_fullpath}<br /> File URL: {file_url}<br /> File name: {file_name}<br /> File basename: {file_basename}<br /> File extension: {file_extension}<br /> File extension mime: {file_extension_mime}<br /> File size in bytes: {file_size_bytes}<br /> File size formatted: {file_size_formatted}<br /> File symbolic permissions: {file_symbolic_permissions}<br /> File octal permissions: {file_octal_permissions}<br /> File is image: {if file_is_image}Yes{if:else}No{/if}<br /> {if file_is_image} Image width: {image_width}<br /> Image height: {image_height}<br /> Image bits: {image_bits}<br /> {if image_channels}Image channels: {image_channels}<br />{/if} Image mime: {image_mime}<br /> {/if} {/exp:gwcode_fileinfo:single} </div> {/exp:low_variables:pair}
Any ideas?
Much appreciated. Thank you.
|