$rows paramater in pdf table

Author Message

Ibrahim Khachab

Thursday 23 September 2004 1:22:14 am

Hi all,
I'm unable to figure out how to prepare the $rows parameter for the pdf table operator

{pdf(table, $rows, hash( [ showLines, value, ] ..............

Any help/example?

Thanks

Kåre Køhler Høvik

Thursday 23 September 2004 1:35:59 am

Just updated the documentation with a new example : http://ez.no/ez_publish/documentation/reference/template_operators/pdf/table

Kåre Høvik

Ibrahim Khachab

Thursday 23 September 2004 2:51:03 am

HiKåre,
Thank you for your immediate reply.
I didn't think it was so immediate :)
I thought I should use some strange calls to get the rows and cells of the table.
I wish to list some images in a pdf and I noticed that they are displayed overlapped.
I don't know if a good solution is to put them in a table and I can't even figure out how to do that.
Thanks

Kåre Køhler Høvik

Thursday 23 September 2004 2:57:31 am

Which version of eZ publish do you use ?
Could you paste the template code which generates overlapping images here ?

Kåre Høvik

Ibrahim Khachab

Thursday 23 September 2004 3:15:49 am

Hi Kåre,
I'm using ezpublish-3.4.0.
The code I'm using is the following

  {let images=fetch('content',list,hash(parent_node_id,$node.main_node_id, class_filter_type, include, class_filter_array,array(5)))}
    {section name=image loop=$images}			
         {pdf( image, hash( src,$image:item.data_map.image.content["medium"].full_path,
                   width,$image:item.data_map.image.content["medium"].width,
                   height,$image:item.data_map.image.content["medium"].height ) ) }
    {/section}  		
  {/let}

I tried to put a {pdf( newline )} after every image outpu in the loop without success.

Thanks

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 19:09:59
Script start
Timing: Jan 18 2025 19:09:59
Module start 'layout'
Timing: Jan 18 2025 19:09:59
Module start 'content'
Timing: Jan 18 2025 19:10:00
Module end 'content'
Timing: Jan 18 2025 19:10:00
Script end

Main resources:

Total runtime1.0322 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 587.9141152.6250
Module start 'layout' 0.00610.0033 740.539139.4453
Module start 'content' 0.00931.0215 779.9844556.4297
Module end 'content' 1.03090.0013 1,336.414112.1641
Script end 1.0321  1,348.5781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3070160.0002
Check MTime0.00130.1262160.0001
Mysql Total
Database connection0.00080.078610.0008
Mysqli_queries0.978694.8122630.0155
Looping result0.00070.0698610.0000
Template Total1.000196.920.5001
Template load0.00220.215020.0011
Template processing0.997996.676120.4989
Template load and register function0.00020.015310.0002
states
state_id_array0.00090.090210.0009
state_identifier_array0.00160.150920.0008
Override
Cache load0.00190.1810300.0001
Sytem overhead
Fetch class attribute can translate value0.00050.050620.0003
Fetch class attribute name0.00120.111460.0002
XML
Image XML parsing0.00060.055520.0003
class_abstraction
Instantiating content class attribute0.00000.001570.0000
General
dbfile0.00070.0691150.0000
String conversion0.00000.000640.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
5content/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
2content/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