Forums / Developer / Print button that depends on the siteaccess

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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