Hi, I am trying to create something I saw on an old thread. Basically rendering some thumbnail pics via Ditto
I have created a template variable named factfilethumb
Next I added this snippet:
<?php
if (isset($image) && file_exists($image)) { return (file_exists($thumb = preg_replace('#([^/]+)$#', '.thumb_$1', $image)) ? $thumb : $image );}
?>
and named it get_fck_thumb
Then I added this call:
[[Ditto? &id=`pictures` &dateFormat=`%d - %b - %Y` &dateSource=`pub_date` &tpl=`pictures` &parents=`70,80` &depth=`3` &display=`5`]]
My chunk named pictures contains
<image src="[[get_fck_thumb? &image=`[+factfilethumb+]`]]" />
I am using Evo 1.0.4. Am I doing something wrong? It returns 5 tiny squares that have a bmp or jpeg logo, and are only apout 10px square
Thanks
Seb