[solution] Printer version Link for Search is working

Author Message

Ekkehard Dörre

Tuesday 20 May 2003 3:16:33 am

On ez.no and in the demo the printer version link made no sense on search,
only printing without results where possible. Change Your link in page_layout_section_xxx.tpl or where else into:

{section show=$enable_print}
{section show=is_set($search_text_enc)}
{section show=is_set($search_contentclass_id)}
<a href={concat('layout/set/print/',$site.uri.tail,'?SearchText=',$search_text_enc,'&SearchContentClassAttributeID=',$search_contentclass_id,'&SearchSectionID=',$search_section_id,'&SearchDate=',$search_date)|ezurl} class="path">{'Printable version'|i18n('design/standard/layout')}</a>
{section-else}
<a href={concat('layout/set/print/',$site.uri.tail,'?SearchText=',$search_text_enc)|ezurl} class="path">{'Printable version'|i18n('design/standard/layout')}</a>
{/section}
{section-else}
<a href={concat("layout/set/print/",$site.uri.tail)|ezurl} class="path">{'Printable version'|i18n('design/standard/layout')}</a>
{/section}
{/section}

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

Main resources:

Total runtime0.5389 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 588.1563152.6563
Module start 'layout' 0.00740.0032 740.812539.4922
Module start 'content' 0.01060.5267 780.3047472.7891
Module end 'content' 0.53740.0015 1,253.09388.1250
Script end 0.5389  1,261.2188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.6652160.0002
Check MTime0.00150.2866160.0001
Mysql Total
Database connection0.00100.183910.0010
Mysqli_queries0.496992.2012460.0108
Looping result0.00040.0743440.0000
Template Total0.506393.920.2531
Template load0.00230.421020.0011
Template processing0.504093.518920.2520
Template load and register function0.00010.017810.0001
states
state_id_array0.00100.178710.0010
state_identifier_array0.00100.188920.0005
Override
Cache load0.00190.3442180.0001
Sytem overhead
Fetch class attribute can translate value0.00040.082410.0004
Fetch class attribute name0.00080.145920.0004
XML
Image XML parsing0.00050.089510.0005
class_abstraction
Instantiating content class attribute0.00000.001120.0000
General
dbfile0.00080.1501160.0001
String conversion0.00000.001740.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs