How can I find out which module is running?

Author Message

Trond Åge Kvalø

Wednesday 07 April 2004 1:48:23 am

I want to use the template language to find the current module. E.g. if the URL is /content/node/view/full/68, then I know that the module is content, but if the URL is /user/login then the module is user.

How can I do this?

best regards
trondåge

trondåge

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

Main resources:

Total runtime0.0159 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 588.0469152.6406
Module start 'layout' 0.00610.0027 740.687539.4766
Module start 'content' 0.00880.0050 780.164185.2578
Module end 'content' 0.01370.0021 865.421930.3047
Script end 0.0159  895.7266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002817.6951140.0002
Check MTime0.00138.0772140.0001
Mysql Total
Database connection0.00095.752510.0009
Mysqli_queries0.002214.094930.0007
Looping result0.00000.107910.0000
Template Total0.001811.110.0018
Template load0.00106.191610.0010
Template processing0.00084.839710.0008
Override
Cache load0.00074.544410.0007
General
dbfile0.00031.645780.0000
String conversion0.00000.082440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs