I am one step further with access to the thumbnail directory.
$image->resize(150, 112) creates in the thumbnail directory automatically thumbs, width=150px and height=112px
from the gallery pictures and makes them accessible at the same time. That is really neat done inside ItemManager.
So now I have:
Which works nice.
$image->resize(150, 112) creates in the thumbnail directory automatically thumbs, width=150px and height=112px
from the gallery pictures and makes them accessible at the same time. That is really neat done inside ItemManager.
So now I have:
Code:
foreach($item->images as $key => $image) {
if(!$image->name) { continue; }
echo '<div>';
echo '<h1></h1>';
echo '<a href="' . get_site_url(false) . 'framework/' . $image->url . '" rel="group_1" title="'.$image->title.'">
<img src="' . get_site_url(false) . 'framework/'.$image->resize(150, 112).'" alt=""></a>';
echo '</div>';
}
Which works nice.