Monday 22 August 2005 3:00:22 am
I've create a custom class for a product. This class have 2 "objects relation" attributes. I've used the first one, "imgcentral", to show an image, using this code in the template:
{section show=$node.object.data_map.imgcentral.content} {attribute_view_gui alignment=left attribute=$node.object.data_map.imgcentral.content.data_map.image}
{/section}
This works correctly. I used the second one, "videoflash", to show a flash video, using this code:
{section show=$node.object.data_map.videoflash.content} {attribute_view_gui alignment=left attribute=$node.object.data_map.imgcentral.content.data_map.file}
{/section}
In this case works, but there is a problem, anonimous user cannot see the video flash, stored in media section. Maybe this is right, but also the image is stored in media section, and anonimous users can see them. I've noticed that in the output html the image was retrived from another path (cached?):
<img src="/weissenfels/var/shop/storage/images/media/images/m44_loghi_iso/467-1-ita-IT/m44_loghi_iso_small.jpg" width="100" height="71" style="border: 0px;" alt="" title="" />
The flash file, instead, is retrived directly from media folder:
<embed src="/weissenfels/index.php/weissenfels/content/download/112/496/M44.swf"
quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
width="400" height="300" play="true"
loop="" >
</embed>
There is a way to show media files (i.e. flash) like images files, without give read permission to anonimous users? Thx, Salvatore Guarino
|