image

Author Message

enigmista enigmista

Friday 05 September 2003 4:19:51 am

{let children=fetch('content',list,hash(parent_node_id,231))}
{section name=Child loop=$children max=3}

*** ?? ***

{/section}
{/let}

How can i display article image? And thrumbnails?
Tnz

Alex Jones

Friday 05 September 2003 6:17:41 am

Try:
{attribute_view_gui attribute=$:item.data_map.image image_class=small}

You can change the image_class to determine the size of the image.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

enigmista enigmista

Friday 05 September 2003 6:34:53 am

{let children=fetch('content',list,hash(parent_node_id,231))}
{section name=Child loop=$children max=3}

{attribute_view_gui attribute=$:item.data_map.image image_class=small}

{/section}
{/let}

Prints nothing... 231 contains 4 articles with image...

Alex Jones

Friday 05 September 2003 7:27:46 am

Oops, try $:Child insted of $:item.

Sorry,

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

enigmista enigmista

Friday 05 September 2003 8:05:59 am

{let children=fetch('content',list,hash(parent_node_id,231))}
{section name=Child loop=$children max=3}

{attribute_view_gui attribute=$:Child.data_map.image image_class=small}

{/section}
{/let}

Doesn't work :°°°

Víctor Déniz

Friday 05 September 2003 5:05:51 pm

Hi enigmista.

I don't remember well the attribute_view_gui syntax, but I'm sure how reference the variable in a loop:

{let children=fetch('content',list,hash(parent_node_id,231))}
{section name=Child loop=$children max=3}
{attribute_view_gui attribute=$Child:item.data_map.image image_class=small}
{/section}
{/let}

The namespace before the variable. I have used it; if it doesn't work say me for looking the correct one.

See you soon.

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 16:23:13
Script start
Timing: Jan 18 2025 16:23:13
Module start 'layout'
Timing: Jan 18 2025 16:23:13
Module start 'content'
Timing: Jan 18 2025 16:23:13
Module end 'content'
Timing: Jan 18 2025 16:23:13
Script end

Main resources:

Total runtime0.0113 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0039 587.7813152.6094
Module start 'layout' 0.00390.0020 740.390639.3906
Module start 'content' 0.00600.0037 779.781393.2734
Module end 'content' 0.00960.0016 873.054734.3047
Script end 0.0113  907.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002118.9705140.0002
Check MTime0.00108.8840140.0001
Mysql Total
Database connection0.00065.166710.0006
Mysqli_queries0.001513.388230.0005
Looping result0.00000.080210.0000
Template Total0.001412.110.0014
Template load0.00086.822810.0008
Template processing0.00065.202510.0006
Override
Cache load0.00054.451510.0005
General
dbfile0.00022.000080.0000
String conversion0.00000.050640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs