How to get current site access name in module template?

Author Message

Bartek Modzelewski

Friday 06 January 2006 3:31:23 am

Hello

I'm working on small module and I need to get current site access name in my template (or directly in module php script).
I tried using {$access_type.name} , but this variable is not available in module template.

I'm using eZp version 3.6.1.

Thanks for any help.

Baobaz
http://www.baobaz.com

Kristof Coomans

Friday 06 January 2006 5:35:15 am

In PHP, you can use $GLOBALS['eZCurrentAccess'].

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Bartek Modzelewski

Friday 06 January 2006 5:47:46 am

Thank you very much!

Baobaz
http://www.baobaz.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.