Forums / Developer / How to get current site access name in module template?

"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".

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