I am trying to:
When a custom field of image is used to upload an image, i need the file reference for the registered sized image. I.E i have a custom image dimensions of 900x400 registered, when a user uploads their own photo i need the URL of the image.jpg with the image-900x400.jpg part of the ref, how do i do this?
I am current using $image1 = types_render_field("company-image-1", array("raw"=>"true"));, what i have is a section for up 10 images to be uploaded, i am then loading these into royal slider which requires the following code:
<a class="rsImg bugaga" data-rsbigimg="'.$image1.'" href="'.$image1.'"><img class="rsTmb" src="'.$image1.'" /></a>
But i need the value of $image1 to be not just:
hidden link
But the actual resized file ref:
hidden link
Is this possible?
Thanks,
Tralisk
Wow, dont click on the image ref's above, it auto hyperlinked to a salesforce website, not my intention, though impressive to know that salesforce have bought site.com and are redirecting!!!
Nevermind, i was being blinded by my own ignorance,
solution:
$image1 = types_render_field("company-image-1", array("url"=>"true","height"=>"400","width"=>"900","resize"=>"crop"));