Printable Search in eZ

Author Message

kracker (the)

Wednesday 22 November 2006 12:51:00 am

<b>Background</b>

I was recently updating an eZ publish search implementation. I noticed that the site design used a print icon in it's page layout, yet sadly it was hard coded to only work on page views which displayed node content. (statically linked to for content view full + node_id).

On page views using the search (displaying results) the printable link naturally did not function and would link to an incomplete url. Leading me to sneaking implementing alternate printable views (other than 'view') like advanced search (results). Yet I ran into a problem of how to do this the <i>'eZ'</i> way, this must have been done before (dynamic printable link for alternate module views :\)

So before I hack it to bits, I pause to ask here for your thoughts, experiences and conclusions.

<b>The Question</b>

How to detect in $module_result or other template variable when using the '/content/advancedsearch/' module as apposed to 'view'.

Using the above solution, then how would you create a print this page link (#1) which passes the search url parameters to a printer friendly template layout and navigator.

I will document this thread to http://eZpedia.org and resulting solution for the community.

<i>//kracker

Incubus - Hidden 'eZc' Song</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Xavier Dutoit

Wednesday 22 November 2006 1:05:51 am

Hi,

I'd suggest to do the print with only a css (media=print). It works fine.

X+

http://www.sydesy.com

kracker (the)

Wednesday 22 November 2006 1:08:16 am

And just as quickly as I ask I realize I should have searched a little more thoroughly.

It seems 'ekke' has provided a solution some time ago.
<i>http://ez.no/community/forum/setup_design/solution_printer_version_link_for_search_is_working</i>

Perhaps I should file an issue on this topic as well?

<i>//kracker

Black Eyed Peas feat.Macy Gray - Request Line</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

kracker (the)

Wednesday 22 November 2006 1:56:42 am

node created! <i>http://ezpedia.org/wiki/en/ez/solution_printable_search_in_ez</i>

Create your very own documentation node about anything eZ publish in the eZpedia!

//kracker
<i>Mindless Self Indulgence - Bring the Pain</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Xavier Dutoit

Wednesday 22 November 2006 3:41:31 am

Create your very own documentation node about anything eZ publish in the eZpedia!

Deserves to be promoted as a signature !

X+

http://www.sydesy.com

Ekkehard Dörre

Wednesday 22 November 2006 5:37:19 am

Or the search result as PDF:

http://ez.no/community/forum/general/create_pdf_from_search_results_showing_all_results/re_create_pdf_from_search_results_showing_all__1

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

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 15:08:05
Script start
Timing: Jan 18 2025 15:08:05
Module start 'layout'
Timing: Jan 18 2025 15:08:05
Module start 'content'
Timing: Jan 18 2025 15:08:06
Module end 'content'
Timing: Jan 18 2025 15:08:06
Script end

Main resources:

Total runtime1.4303 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0094 587.9063152.6250
Module start 'layout' 0.00940.0045 740.531339.4297
Module start 'content' 0.01391.4149 779.9609627.0547
Module end 'content' 1.42880.0014 1,407.015616.1875
Script end 1.4302  1,423.2031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.2574160.0002
Check MTime0.00160.1124160.0001
Mysql Total
Database connection0.00110.080110.0011
Mysqli_queries1.353494.6286680.0199
Looping result0.00060.0430660.0000
Template Total1.391797.320.6958
Template load0.00220.152020.0011
Template processing1.389597.150220.6948
Template load and register function0.00010.007310.0001
states
state_id_array0.00080.057510.0008
state_identifier_array0.00250.174920.0013
Override
Cache load0.00190.1305430.0000
Sytem overhead
Fetch class attribute can translate value0.00090.062130.0003
Fetch class attribute name0.00120.085490.0001
XML
Image XML parsing0.00170.116430.0006
class_abstraction
Instantiating content class attribute0.00000.0017120.0000
General
dbfile0.00120.0816300.0000
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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs