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.

eZ debug

Timing: Jan 19 2025 00:19:43
Script start
Timing: Jan 19 2025 00:19:43
Module start 'layout'
Timing: Jan 19 2025 00:19:43
Module start 'content'
Timing: Jan 19 2025 00:19:45
Module end 'content'
Timing: Jan 19 2025 00:19:45
Script end

Main resources:

Total runtime1.3293 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 589.2891152.6563
Module start 'layout' 0.00590.0030 741.945339.4922
Module start 'content' 0.00891.3187 781.4375529.7109
Module end 'content' 1.32760.0017 1,311.14848.1250
Script end 1.3293  1,319.2734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2463160.0002
Check MTime0.00130.0975160.0001
Mysql Total
Database connection0.00090.068910.0009
Mysqli_queries1.283996.5807570.0225
Looping result0.00060.0438550.0000
Template Total1.291097.120.6455
Template load0.00210.158920.0011
Template processing1.288996.957820.6445
Template load and register function0.00020.012310.0002
states
state_id_array0.00140.107110.0014
state_identifier_array0.00230.172820.0011
Override
Cache load0.00170.1272130.0001
Sytem overhead
Fetch class attribute can translate value0.00060.048720.0003
Fetch class attribute name0.00100.077040.0003
XML
Image XML parsing0.00070.049620.0003
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00090.0713160.0001
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs