Forums / Developer / How to fetch multiple classes to single full.tpl file?
sangib das
Monday 23 October 2006 5:31:59 am
Hi All Please see the follwing code?
{let children=fetch( content, list, hash( parent_node_id, 109, sort_by, $node.sort_array, class_filter_type, include, class_filter_array, array( 'vijaydropdown','vijaycheckbox','vijaytext','vijayoption') ) ) } <div class="imageright"> {attribute_view_gui attribute=$node.object.data_map.question123} </div> <div class="imageright"> {attribute_view_gui attribute=$node.object.data_map.answer} </div> <div class="imageright"> {attribute_view_gui attribute=$node.object.data_map.question} </div> <table> <tr> <td>{attribute_view_gui attribute=$node.object.data_map.answer1}</td> <td>{attribute_view_gui attribute=$node.object.data_map.value1}</td> </tr> <tr> <td>{attribute_view_gui attribute=$node.object.data_map.answer2}</td> <td>{attribute_view_gui attribute=$node.object.data_map.value2}</td> </tr> <tr> <td>{attribute_view_gui attribute=$node.object.data_map.answer3}</td> <td>{attribute_view_gui attribute=$node.object.data_map.value3}</td> </tr> <tr> <td>{attribute_view_gui attribute=$node.object.data_map.answer4}</td> <td>{attribute_view_gui attribute=$node.object.data_map.value4}</td> </tr> <tr> <td>{attribute_view_gui attribute=$node.object.data_map.answer5}</td> <td>{attribute_view_gui attribute=$node.object.data_map.value5}</td> </tr> </table> {attribute_view_gui attribute=$node.object.data_map.option123} {attribute_view_gui attribute=$node.object.data_map.multioption} {/let}
is it possible to fetch all data? Thanks and RegardsSangib
<i>// Please use "code" tag for code listings. Thank you ;)</i>
Łukasz Serwatka
Tuesday 24 October 2006 12:25:48 am
Hi,
Just remove class filter, then system will fetch objects of all classes.
Personal website -> http://serwatka.net Blog (about eZ Publish) -> http://serwatka.net/blog
Tuesday 24 October 2006 8:46:35 pm
Hi Lukasz SerwatkaThanks a lot .Can u explain it which one i will obmit from here.
class_filter_type, include, class_filter_array, array( 'vijaydropdown','vijaycheckbox','vijaytext','vijayoption')
Thanks and regards Sangib
Wednesday 25 October 2006 2:04:50 am
Just remove those two lines:
Then system will fetch objects of all classes.