Posted By

iroybot on 07/21/11


Tagged

joomla item k2 naming convention iimage


Versions (?)

Joomla! K2 image naming...


 / Published in: PHP
 

If you wanna use images stored by K2 in your custom scripts/classes you'll need to know how K2 generates the names... (took me quite a bit to find that, because they're not stored in the k2items table)

  1. // for example: to get the path for a large image
  2. echo '<img src="'.$_SERVER["DOCUMENT_ROOT"].'/media/k2/items/src/'.md5("Image".$item["id"]).'_L.jpg'" alt="" />';

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: bubaphex on May 12, 2012

what is $item referring to ?

Posted By: aleshacasha on February 11, 2014

thank you very much, I was searching for a couple of weeks))

You need to login to post a comment.