Getting module name in pagelayout

Author Message

Felipe Jaramillo

Friday 18 November 2005 1:23:28 pm

Hi,
To show a section image in pagelayout I need to access the name of the module and the view used.

For example, to show a tip a friend image in pagelayout, i need to know the user is accessing
/content/tipafriend.

I didn't find this information in any of the available variables.

Any ideas?

Regards,

Felipe

Felipe Jaramillo
eZ Certified Extension Developer
http://www.aplyca.com | Bogotá, Colombia

Kristof Coomans

Saturday 19 November 2005 12:52:17 am

You can use $module_result.path or $uri_string.

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

Felipe Jaramillo

Tuesday 22 November 2005 3:19:17 pm

Thanks Kristof, I must have missed it.

Regards,
Felipe

Felipe Jaramillo
eZ Certified Extension Developer
http://www.aplyca.com | Bogotá, Colombia

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 04:44:44
Script start
Timing: Jan 19 2025 04:44:44
Module start 'layout'
Timing: Jan 19 2025 04:44:44
Module start 'content'
Timing: Jan 19 2025 04:44:44
Module end 'content'
Timing: Jan 19 2025 04:44:44
Script end

Main resources:

Total runtime0.6809 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.0054 589.1563152.6250
Module start 'layout' 0.00540.0027 741.781339.4453
Module start 'content' 0.00810.6714 781.2266531.6172
Module end 'content' 0.67950.0014 1,312.84388.1563
Script end 0.6809  1,321.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.5167160.0002
Check MTime0.00130.1877160.0001
Mysql Total
Database connection0.00070.107410.0007
Mysqli_queries0.636393.4512570.0112
Looping result0.00050.0680550.0000
Template Total0.652995.920.3264
Template load0.00230.342320.0012
Template processing0.650595.536820.3253
Template load and register function0.00020.036010.0002
states
state_id_array0.00080.123510.0008
state_identifier_array0.00080.113720.0004
Override
Cache load0.00190.2859180.0001
Sytem overhead
Fetch class attribute can translate value0.00120.175320.0006
Fetch class attribute name0.00140.209840.0004
XML
Image XML parsing0.00060.094720.0003
class_abstraction
Instantiating content class attribute0.00000.001440.0000
General
dbfile0.00080.1192160.0001
String conversion0.00000.001340.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
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs