Variable holding current siteaccess

Author Message

Eirik Alfstad Johansen

Friday 02 September 2005 2:41:47 am

Hi,

I need to run an event based on the current siteaccess, so I was wondering if someone could tell me the name of the variable holding this information.

Thanks in advance !

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Ɓukasz Serwatka

Friday 02 September 2005 3:09:51 am

Hi,

You can use

{$access_type.name}

This is pagelayout variable.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 18 2025 16:08:24
Script start
Timing: Jan 18 2025 16:08:24
Module start 'layout'
Timing: Jan 18 2025 16:08:24
Module start 'content'
Timing: Jan 18 2025 16:08:25
Module end 'content'
Timing: Jan 18 2025 16:08:25
Script end

Main resources:

Total runtime0.8683 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.0547152.6250
Module start 'layout' 0.00630.0028 741.679739.4453
Module start 'content' 0.00910.8575 781.1250531.8281
Module end 'content' 0.86660.0016 1,312.95318.1563
Script end 0.8682  1,321.1094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4085160.0002
Check MTime0.00140.1611160.0001
Mysql Total
Database connection0.00090.100110.0009
Mysqli_queries0.824594.9613540.0153
Looping result0.00040.0472520.0000
Template Total0.837696.520.4188
Template load0.00230.264520.0011
Template processing0.835196.178120.4175
Template load and register function0.00010.011510.0001
states
state_id_array0.00080.096810.0008
state_identifier_array0.00110.127520.0006
Override
Cache load0.00190.2172130.0001
Sytem overhead
Fetch class attribute can translate value0.00080.090220.0004
Fetch class attribute name0.00090.105540.0002
XML
Image XML parsing0.00120.142020.0006
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00100.1160240.0000
String conversion0.00000.000740.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs