Module work but title error

Author Message

Mathieu Pisonero

Thursday 07 October 2010 8:52:36 am

Hello,

I had a strange problem on eZpublish. I had create a personal module. The module work, but the title of the web page are not the good one. Some time the title is : "kernel(20)/error" and another time it's a another title, but nothing to do with mymodule.

An idea?? Thank's for your help

-Ez V 4.1.2-

Christian Rößler

Thursday 07 October 2010 9:09:03 am

Hy Mathieu,

consider using the path-arraykey in your module Result:

// some module code here
...
...
// Process template and set path data    
$Result = array();    
$Result['content'] = $tpl->fetch( 'design:foo/bar/blaa.tpl' );    
$Result['path'] = array( array( 'url' => false,                                    
                                'text' => 'YOUR NEW PAGE TITLE HERE' ) );

Or take a look in extension/ezfind/modules/ezfind/elevate.php . This is a nice example...

cheers,

Chris

Hannover, Germany
eZ-Certified http://auth.ez.no/certification/verify/395613

Mathieu Pisonero

Thursday 07 October 2010 9:46:24 am

helle Christain,

Thanks for the response! But I alleready use the path-arraykey.

For be more precise :

1-I never did this module (...but I have to know why this probleme.)

2-A first module is call by a form action. In this form, a hidden input ''RedirectURI" with the path of the second module.

3- So I think ez past by the first module (without result param), and they have a redirection in the second (with the path-arraykey).

Maybe somme one, can give me a idea!

Thank a lot!

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:12:17
Script start
Timing: Jan 30 2025 21:12:17
Module start 'layout'
Timing: Jan 30 2025 21:12:17
Module start 'content'
Timing: Jan 30 2025 21:12:18
Module end 'content'
Timing: Jan 30 2025 21:12:18
Script end

Main resources:

Total runtime1.1383 sec
Peak memory usage8,192.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 588.1328151.2109
Module start 'layout' 0.00450.0034 739.3438220.6953
Module start 'content' 0.00801.1293 960.03914,298.6641
Module end 'content' 1.13730.0010 5,258.70317.8516
Script end 1.1383  5,266.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2935160.0002
Check MTime0.00130.1107160.0001
Mysql Total
Database connection0.00070.061410.0007
Mysqli_queries1.054592.6345570.0185
Looping result0.00050.0465550.0000
Template Total1.091195.920.5455
Template load0.00210.181020.0010
Template processing1.089095.668020.5445
Template load and register function0.00200.172110.0020
states
state_id_array0.00160.141010.0016
state_identifier_array0.00140.123920.0007
Override
Cache load0.00170.1457230.0001
Sytem overhead
Fetch class attribute can translate value0.00180.158220.0009
Fetch class attribute name0.00220.191430.0007
XML
Image XML parsing0.00030.022520.0001
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00270.2350100.0003
String conversion0.00000.000640.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/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: 5

Time used to render debug report: 0.0001 secs