Forums / Setup & design / Messages between pagelayout and module.content
Wojciech Rębisz
Monday 10 December 2007 6:34:50 am
Hi, Im wondering how can I personalize messages displayed in the <i>'shop/userregister'</i> which shows template <i>'user/login'</i> in the webshop. When Im opening my 'orders' page, i got some warning message <i>"Access denied, possible reasons... etc. You have to log in" </i> I was looking for some tokens that could display this, but I didn't found anything. Could it be that
$module_result.content
adds some extra notyfication messages befor showing right templates?How can I place this message in some box in the place I need it to be shown?
Kind Regards, Wojtek
Tuesday 11 December 2007 12:53:53 am
Hi, I manage to work out the problem.
The <i>'user/login'</i> wasn't the right template I was thinking that is shown. Actually system was using <i>'/warning/kernel/1.tpl'.</i>
When warning <b>No 1</b> have to be displayed system looks into <i>error.ini</i> file and there is defined the template that shall be included, after warning message is displayed:
# Set access denied to embed login ErrorHandler[1]=embed EmbedURL[1]=/user/login
In my case (and I think it is the default setting) i had <i>'user/login' .</i>
So.... I found out where come from the warning message <i>(/warning/kernel/1.tpl) </i> not from nowhereAnd found out where come from the messages about template include <i>'user/login.tpl'</i> (it is defined in the <i>error.ini</i>)
Wojtek