Forums / Developer / Module work but title error
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
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!