$:item.object.data_map.logo problem

Author Message

sangib das

Thursday 16 November 2006 1:19:55 am

How to dispaly a logo(Data type Image) or value( data type price)
pls help me.........................

{let name=test counter=0 children=fetch( content,list,

                                        hash( parent_node_id,91,

                                              sort_by, $node.sort_array,
                                              class_filter_type, include,
                                              class_filter_array, array( 'prize' )

                                            )

                                       )

}

 

<table class="news_archive">

 

{* Loop through all the entries. *}

{section loop=$:children}

 

   {* Increment the counter by one. *}

   {set counter=$:counter|inc}

 

   <tr><td>

       <hr />

       Submitted by <b>{$:item.object.data_map.value.content..output.output_text|wash}</b>
       on {$:item.object.published|l10n(shortdate)}:

       <br />

       <br />

       <i>{$:item.object.data_map.logo.content|wash}</i>
<br />

<i>{$:item.object.data_map.value.content..output.output_text</i>
   </td></tr>

 

{* End of loop. *}

{/section}

 

   <tr><td><hr /></td></tr>

</table>

 

<div class="center">

   Number of entries in the guestbook: {$:counter}

</div>

 

{* Release the counter and the children variable. *}

{/let}






Andreas Adelsberger

Thursday 16 November 2006 1:54:15 am

hi, i used the {attribute_view_gui } template function for this issue:

{attribute_view_gui attribute=$node.object.data_map.myimage image_class='large'}

more info here: http://ez.no/doc/ez_publish/technical_manual/3_8/reference/template_functions/visualization/attribute_view_gui

---------------------------------------
Styleflasher New Media OG
Websites. Games/Multimedia.

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 21:07:20
Script start
Timing: Jan 18 2025 21:07:20
Module start 'layout'
Timing: Jan 18 2025 21:07:20
Module start 'content'
Timing: Jan 18 2025 21:07:21
Module end 'content'
Timing: Jan 18 2025 21:07:21
Script end

Main resources:

Total runtime0.6465 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0102 587.9219152.6250
Module start 'layout' 0.01020.0067 740.546939.4609
Module start 'content' 0.01690.6278 780.0078523.6953
Module end 'content' 0.64470.0017 1,303.70318.3125
Script end 0.6464  1,312.0156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.5588160.0002
Check MTime0.00140.2091160.0001
Mysql Total
Database connection0.00110.163210.0011
Mysqli_queries0.596092.1857540.0110
Looping result0.00050.0843520.0000
Template Total0.604493.520.3022
Template load0.00220.343420.0011
Template processing0.602193.144120.3011
Template load and register function0.00020.025910.0002
states
state_id_array0.00100.150710.0010
state_identifier_array0.00090.138720.0004
Override
Cache load0.00180.2755110.0002
Sytem overhead
Fetch class attribute can translate value0.00100.155220.0005
Fetch class attribute name0.00100.156630.0003
XML
Image XML parsing0.00070.106920.0003
class_abstraction
Instantiating content class attribute0.00000.001330.0000
General
dbfile0.00090.1402160.0001
String conversion0.00000.001940.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/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: 9
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs