How to get the current Module and View

Author Message

Hakim Bouras

Thursday 01 July 2010 11:51:54 pm

Hi,

From the pagelayout.tpl is there a way to get the current module and view ?

This information is not available in $module_result.

I am looking for a way to get it from a template, but if there is a way to get it from the API I can build an operator for this (I tried eZModule::currentModule but unfortunaltely it works only in the module context not out of the module).

Thanks,

Hakim

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 30 2025 21:14:15
Script start
Timing: Jan 30 2025 21:14:15
Module start 'layout'
Timing: Jan 30 2025 21:14:15
Module start 'content'
Timing: Jan 30 2025 21:14:16
Module end 'content'
Timing: Jan 30 2025 21:14:16
Script end

Main resources:

Total runtime0.8611 sec
Peak memory usage8,192.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.2500151.2266
Module start 'layout' 0.00470.0040 739.4766220.7031
Module start 'content' 0.00880.8516 960.17974,340.6250
Module end 'content' 0.86030.0008 5,300.80477.8438
Script end 0.8611  5,308.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3765160.0002
Check MTime0.00120.1406160.0001
Mysql Total
Database connection0.00080.090810.0008
Mysqli_queries0.792291.9967460.0172
Looping result0.00040.0455440.0000
Template Total0.815294.720.4076
Template load0.00160.187420.0008
Template processing0.813694.475920.4068
Template load and register function0.00120.137910.0012
states
state_id_array0.00090.100110.0009
state_identifier_array0.00120.138920.0006
Override
Cache load0.00130.1554120.0001
Sytem overhead
Fetch class attribute can translate value0.00170.191810.0017
Fetch class attribute name0.00240.282820.0012
XML
Image XML parsing0.00040.050110.0004
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00190.2226160.0001
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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs