Thursday 09 March 2006 2:59:23 am
I have strange problem with the reverse_related_objects fetch function, if I try to find a speficic product in my content structure with this code:
{def $objects=fetch( 'content', 'reverse_related_objects',
hash( 'object_id', 185,
'attribute_identifier', '279',
'limit', 1 ) )}
{foreach $objects as $object}
{section show=$object.id|eq('1355')}
{$object|attribute(show)} <br />
{/section}
{/foreach}
otherwise if I try to find the same product with the node fetch function, this is my code:
{def $my_node=fetch( 'content', 'node', hash( 'node_id', 1147 ) )}
{$my_node|attribute(show)}
The problem is the data_map array, with the first method is empty instead with the second method contain 19 element. It's a my code problem or it's a bug?
Antica Bottega Digitale srl
http://www.abd.it
|