How to fetch multiple classes to single full.tpl file?

Author Message

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 Regards
Sangib

<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

sangib das

Tuesday 24 October 2006 8:46:35 pm

Hi Lukasz Serwatka
Thanks 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

Łukasz Serwatka

Wednesday 25 October 2006 2:04:50 am

Hi,

Just remove those two lines:

class_filter_type, include,
class_filter_array, array( 'vijaydropdown','vijaycheckbox','vijaytext','vijayoption')

Then system will fetch objects of all classes.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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

eZ debug

Timing: Jan 18 2025 15:15:11
Script start
Timing: Jan 18 2025 15:15:11
Module start 'layout'
Timing: Jan 18 2025 15:15:11
Module start 'content'
Timing: Jan 18 2025 15:15:13
Module end 'content'
Timing: Jan 18 2025 15:15:13
Script end

Main resources:

Total runtime1.4060 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 588.1406152.6406
Module start 'layout' 0.00650.0026 740.781339.4766
Module start 'content' 0.00901.3958 780.2578556.9219
Module end 'content' 1.40480.0011 1,337.179712.1250
Script end 1.4059  1,349.3047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.2671160.0002
Check MTime0.00180.1256160.0001
Mysql Total
Database connection0.00080.053610.0008
Mysqli_queries1.350196.0288600.0225
Looping result0.00050.0370580.0000
Template Total1.376697.920.6883
Template load0.00210.152120.0011
Template processing1.374497.755020.6872
Template load and register function0.00020.014610.0002
states
state_id_array0.00070.048410.0007
state_identifier_array0.00140.097820.0007
Override
Cache load0.00180.1304280.0001
Sytem overhead
Fetch class attribute can translate value0.00130.090520.0006
Fetch class attribute name0.00090.064650.0002
XML
Image XML parsing0.00070.049620.0003
class_abstraction
Instantiating content class attribute0.00000.001260.0000
General
dbfile0.00070.0489180.0000
String conversion0.00000.000540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs