Create pdf from search results showing all results?

Author Message

Joanie Chembars

Friday 01 April 2005 7:58:00 am

Hi -
I found here on the forums how to include the pdf of one item found through a search on the search results page.......
What I am wondering is if there is a way to create one pdf file that will show all of the articles found through a search?
Thanks -
Joanei

Kåre Køhler Høvik

Thursday 07 April 2005 1:26:11 am

Hi

You can use the template operator for searching to reproduce the search result, and generate a PDF from the result. You'll need to have a dedicated template override to generate the PDF, and I suggest passing the search parameters as user parameters.

Documentation:
Search operator - http://ez.no/ez_publish/documentation/reference/data_fetching/content/search
User parameters - http://www.ez.no/ez_publish/documentation/customization/custom_design/user_specified_parameters

Kåre Høvik

Joanie Chembars

Monday 01 August 2005 10:58:34 am

Hi again --
Is there any way I could get you to give me a bit more detailed description of how I should do this? I just can't seem to get my brain around it this afternoon.........
thanks a million

guess I should add that I need to combine results from 5 different classes -each having its own pdf display override file

Joanie Chembars

Tuesday 09 August 2005 6:30:42 am

WooHOo--
I figured this out and it rocks!! Thanks for the guidance on passing the variables -- I finally had the time to dig my heels in and work on this.....

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 22:35:59
Script start
Timing: Jan 18 2025 22:35:59
Module start 'layout'
Timing: Jan 18 2025 22:35:59
Module start 'content'
Timing: Jan 18 2025 22:36:01
Module end 'content'
Timing: Jan 18 2025 22:36:01
Script end

Main resources:

Total runtime1.0786 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.0059 589.1563152.6406
Module start 'layout' 0.00590.0030 741.796939.4766
Module start 'content' 0.00891.0681 781.2734540.5078
Module end 'content' 1.07700.0015 1,321.781312.1250
Script end 1.0785  1,333.9063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2827160.0002
Check MTime0.00140.1264160.0001
Mysql Total
Database connection0.00080.071710.0008
Mysqli_queries1.030495.5385600.0172
Looping result0.00060.0580580.0000
Template Total1.047997.220.5240
Template load0.00170.155120.0008
Template processing1.046297.004420.5231
Template load and register function0.00020.020810.0002
states
state_id_array0.00120.114810.0012
state_identifier_array0.00110.106120.0006
Override
Cache load0.00130.1228230.0001
Sytem overhead
Fetch class attribute can translate value0.00070.067720.0004
Fetch class attribute name0.00140.133350.0003
XML
Image XML parsing0.00050.049820.0003
class_abstraction
Instantiating content class attribute0.00000.001150.0000
General
dbfile0.00090.0847150.0001
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
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
5content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs