is it possible to generate on fly PDF from search results ?

Author Message

Lazaro Ferreira

Thursday 30 September 2004 1:59:36 am

Hi,

Which is the simplest way of producing an on fly pdf from a search result page ?

We see a pdf/searchline.tpl template in ezp standard templates, has it something to do with the question above ?

Lazaro

Lazaro
http://www.mzbusiness.com

Paul Forsyth

Thursday 30 September 2004 2:01:39 am

Im not sure if this is possible. I believe PDFs require a node from which to build but the search doesnt have a node.

Kare, can you confirm?

paul

Lazaro Ferreira

Friday 01 October 2004 8:33:18 am

Paul,

Something new on this ?

Lazaro
http://www.mzbusiness.com

Balazs Halasy

Sunday 03 October 2004 2:58:23 am

Hi Lazaro,

I think it would be possible to hack this in. Modify your search result page by adding an extra column. The search result will give you an array of nodes. Try to do the following for each row (within the new column):

...bla bla bla...
<td>
<a href={concat( '/content/pdf/', $:item.node_id )|ezurl}>PDF version</a>
</td>
...bla bla bla...

..where $:item is the current item within the node-result-array-loop in yourdesign/templates/content/searchresult.tpl (just copy the original one from the standard design and modify it).

Hope this helps.

Balazs / Allman

Lazaro Ferreira

Sunday 03 October 2004 5:49:06 am

Hi Balaz,

Thanks, We'll try it

Lazaro
http://www.mzbusiness.com

Joanie Chembars

Thursday 31 March 2005 11:13:13 am

Lazaro,
Did you have any luck with that code that was posted? I am looking for the same functionality......

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 19 2025 01:11:08
Script start
Timing: Jan 19 2025 01:11:08
Module start 'layout'
Timing: Jan 19 2025 01:11:08
Module start 'content'
Timing: Jan 19 2025 01:11:09
Module end 'content'
Timing: Jan 19 2025 01:11:09
Script end

Main resources:

Total runtime0.9300 sec
Peak memory usage4,096.0000 KB
Database Queries70

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 590.5313152.6563
Module start 'layout' 0.00460.0031 743.187539.5078
Module start 'content' 0.00760.9208 782.6953629.8594
Module end 'content' 0.92840.0015 1,412.554712.0938
Script end 0.9299  1,424.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3584160.0002
Check MTime0.00140.1512160.0001
Mysql Total
Database connection0.00070.078510.0007
Mysqli_queries0.870093.5560700.0124
Looping result0.00070.0775680.0000
Template Total0.900096.820.4500
Template load0.00210.228820.0011
Template processing0.897896.547120.4489
Template load and register function0.00030.029010.0003
states
state_id_array0.00110.115010.0011
state_identifier_array0.00090.093220.0004
Override
Cache load0.00180.1987280.0001
Sytem overhead
Fetch class attribute can translate value0.00090.095440.0002
Fetch class attribute name0.00140.155470.0002
XML
Image XML parsing0.00110.119140.0003
class_abstraction
Instantiating content class attribute0.00000.001770.0000
General
dbfile0.00090.0940160.0001
String conversion0.00000.000840.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs