You are not logged in.
Pages: 1
Hi, im a bit stuck with this, im uploading images to a matrix with image presets the crop the images but when i call the item in the front end the images show up as the originals without being cropped. plz help thanks
Offline
Use the BigTree::prefixFile method to append the crop prefix to the filename to draw your crop rather than your default image.
Offline
Hi im not sure how to use the prefix function, can you give me an example?
for reference...this is a snippet of the code im trying to use it for, where $item["thumb"] is the picture an i've used the prefix "low".
<? foreach ($portfolio_info as $item) { ?>
<div class="col-md-4">
<img src="<?=$item["thumb"]?>">
</div>
<? } ?>
</div>
Thank you
Offline
<? foreach ($portfolio_info as $item) { ?>
<div class="col-md-4">
<img src="<?=BigTree::prefixFile($item["thumb"], "low")?>">
</div>
<? } ?>
Offline
Thanks alot it worked perfectly!
Offline
Pages: 1