Print button that depends on the siteaccess

Author Message

Norman Leutner

Thursday 27 October 2005 4:54:29 am

I need a print button within a included template that depends on the siteaccess like:

<a href={concat('/layout/set/print/',$access_type.name,'/',$site.uri.uri)} target="new">print</a>

he problem is that $access_type.name and $site.uri.uri are not available within the included template:

Error: eZTemplate @ extension/hoppecke/design/plain/override/templates/parts/productpage_right.tpl:53[91] Oct 27 2005 13:17:59 
Unknown template variable 'site' in namespace '' 
Error: eZTemplate @ extension/hoppecke/design/plain/override/templates/parts/productpage_right.tpl:53[105] Oct 27 2005 13:17:59 
Unknown template variable 'access_type' in namespace '' 

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

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:27:14
Script start
Timing: Jan 18 2025 22:27:14
Module start 'layout'
Timing: Jan 18 2025 22:27:14
Module start 'content'
Timing: Jan 18 2025 22:27:15
Module end 'content'
Timing: Jan 18 2025 22:27:15
Script end

Main resources:

Total runtime0.7129 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.0045 588.0469152.6406
Module start 'layout' 0.00450.0024 740.687539.4766
Module start 'content' 0.00690.7046 780.1641469.7500
Module end 'content' 0.71150.0014 1,249.91418.1250
Script end 0.7129  1,258.0391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.5679160.0003
Check MTime0.00140.1937160.0001
Mysql Total
Database connection0.00050.068710.0005
Mysqli_queries0.677495.0159460.0147
Looping result0.00040.0523440.0000
Template Total0.687096.420.3435
Template load0.00200.277620.0010
Template processing0.685196.091720.3425
Template load and register function0.00010.013910.0001
states
state_id_array0.00130.178710.0013
state_identifier_array0.00090.128320.0005
Override
Cache load0.00160.224380.0002
Sytem overhead
Fetch class attribute can translate value0.00100.134510.0010
Fetch class attribute name0.00070.091520.0003
XML
Image XML parsing0.00060.077210.0006
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00070.1036170.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
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/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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: 8
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs