Forums / Setup & design / Template - Which is the active siteaccess?
Felix Woldt
Wednesday 10 May 2006 10:22:33 am
How can i find out which siteaccess is currently used?
Which variable is used?
I am looking for something like this
<i>{$var1.var2.var3}</i>
to have access to the information
http://www.jac-systeme.de - Developers united in eZ Publish: http://www.cjw-network.com CJW Newsletter 1.0.0 released: http://projects.ez.no/cjw_newsletter
Kristof Coomans
Wednesday 10 May 2006 10:30:51 am
Hi Felix
Welcome to the eZ community!
In the pagelayout you'll have the variable $access_type.
On http://ez.no/doc/ez_publish/technical_manual/3_7/templates/the_pagelayout/variables_in_pagelayout you'll find a list of variables available in the pagelayout, in case you need others.
Good luck!
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org
Alex Holt
Wednesday 25 June 2008 11:37:39 am
i can't get $access_type.name to work inside an embed template override. Anyone have any ideas?
The issue is.. the content/view/line.tpl is being used to render an object that is embedded in a ezxmltext box.. and when embedded like that.. the access type appears to not be available.
Override code:
[rate_tables_link] Source=content/view/line.tpl MatchFile=rate_table_line.tpl Subdir=templates Match[class_identifier]=rate_table
Template code:
{$access_type.name}
----------------- ezpublish 4 php 5.1.2centos 5