Share » Forums » Setup & design » Template - Which is the active...

Template - Which is the active siteaccess?

Template - Which is the active siteaccess?

Wednesday 10 May 2006 10:22:33 am - 2 replies

Author Message

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.2
centos 5

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu