Thursday 12 January 2006 2:33:52 pm
I must say that I'm close to giving up. I can show the relevant information, but even thought that I (at least try to) get some of the data away (all producers that do NOT have apples lets say.) it's apparently fetched. I can get it to show the producers, and the products, but my role when i want to limit the search to ONLY show the producers with the apples doesn't work
The output is
Producer1
Apples
Apples
Apples
Apples
Apples
Producer2
Apples
Apples
Apples
Apples
Producer3
Apples
Producer4
Producer5
Apples
Apples
Producer6 Producer7
Now you notice Producer 4 and 6. They do NOT have any apples and shouldn't be shown.
The fetchfunction copies the producers without apples (also them with peaches and Oranges), otherwise they wouldn't be shown. What is happening my code is here
{let category=fetch('content','list',hash(parent_node_id,132,depth, 4,class_filter_type,"include",class_filter_array,array(16,17),'attribute_filter_array', array('and',array( 'qualified_product/product', '=', '1' ),array('producer/producer_name','!=', '0') )))}
{section name=Cat loop=$category}
{switch match=$Cat:item.data_map.product.content.0}
{case match=0}
{section show=$:item.object.data_map.product_category.content.is_empty|not}
<div class="attribute-long">
{attribute_view_gui attribute=$:item.object.data_map.producer_name}
</div>
{/section}{attribute_view_gui attribute=$:item.object.data_map.producer_name}{attribute_view_gui attribute=$:item.object.data_map.product}
{attribute_view_gui attribute=$:item.object.data_map.product_category}<br>
{/case}
{case}{/case}
{/switch}
{/section}
{/let}
I have tried the attribute show, but since i can only do it 2-3 times in order to avoid crash, i cannot see whats relevant in the debug since there is a long way down to "Producer4" without apples. Also notice that the Section apparently loops more than one time (two times), Is this due to the fetching of two classes and that EZ wants to make the loop 2 times. I'm unfortunately getting more and more tired of things like this. Even though you can do cool stuff with EZ - it's a pain in the *** with things like this! /Kristoffer
<i>If you can't describe what you are doing as a process, you don't know what you're doing.</i>
W. Edwards Deming
|