Monday 08 September 2008 12:51:10 am
hi all,
at the moment I'm facing a strange behaviour with the handling of image_alias.
I created a custom module which creates an xml-output in order to interact with flash. I created an image alias which is only needed by the flash. The URL to the image ist created by following snippet:
$object = $item->object();
$dataMap = $object->dataMap();
$image = $dataMap['image']->content();
$aliasList = $image->aliasList();
print($aliasList['consultant_flash']['full_path']);
To create the Images I build an temporary template which contains the image alias for the xml-output. At this point the module works fine and the path to the image will be displayed. After clearing the cache the module displays no url. A var_dump of the $aliasList array displays only the original "image alias", even though the image alias exists in the var directory. Unless I call the temporary template only the original image alias is displayed. I use ezpublish 4.0.1rc1 and according to this issue http://issues.ez.no/IssueView.php?Id=13191 this should be fixed or this is no bug? I'm not sure. So maybe someone has an idea.
Thanks in advance, Marcus
|