Forums / Developer / Printable Search in eZ

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

eZ debug

Timing: Jan 21 2025 17:13:35
Script start
Timing: Jan 21 2025 17:13:35
Module start 'content'
Timing: Jan 21 2025 17:13:35
Module end 'content'
Timing: Jan 21 2025 17:13:35
Script end

Main resources:

Total runtime0.1406 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 587.6875180.8438
Module start 'content' 0.00700.0074 768.5313101.9609
Module end 'content' 0.01450.1261 870.4922531.2500
Script end 0.1405  1,401.7422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00392.7961200.0002
Check MTime0.00161.1278200.0001
Mysql Total
Database connection0.00130.914810.0013
Mysqli_queries0.090964.64291410.0006
Looping result0.00100.73851390.0000
Template Total0.125489.210.1254
Template load0.00110.767410.0011
Template processing0.124388.438610.1243
Override
Cache load0.00070.481510.0007
Sytem overhead
Fetch class attribute can translate value0.00090.656610.0009
XML
Image XML parsing0.00030.184310.0003
General
dbfile0.00835.8691200.0004
String conversion0.00000.005430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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