Trouble with fetching images in Media tab with eZP 4.2.0

Author Message

Pascal France

Friday 02 October 2009 10:46:23 am

Hi,

I would like to fetch and display images wich are under Media(ID43)->Images(ID51)->MyFolder(ID79)

With eZP 3.10.1 I do:

{def $nodes=fetch( 'content', 'list',
        hash( 'parent_node_id', 43,
              'depth', 2 ) )}
{foreach $nodes as $node}
    {$node.name|wash} <br />
{$node|attribute(show)}
{/foreach}

And all works fine.

Now, the same code, using the default Image class, does not work any more in eZP 4.2.0.
I get any output.

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Pascal France

Friday 02 October 2009 10:48:41 am

It's just a policies problem of the anonymous users !

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.