wich template calls eztemplatestringoperator?

Author Message

Alessandro Cipriani

Wednesday 10 March 2004 2:03:36 am

hi all
with the precious help of mark i resolved my problem of setting/retrieving session id, also by adding a new custom function to eztemplatestringoperator.php
now when i call this function from pagelayout.tpl i get the sessionId, but i don't get the same result by calling the function from another template, like mytemplate.tpl

example:
in pagelayout.tpl i call {"session_id"|session_variable} and i get "2e7885d9d819f22ebe467fb3cbdd9ebd"

in mytemplate.tmp i call the same function and i get "session_id"... I think the function isn't executed because the template doesn't find it... right?

any hint?
best regards
alessandro

Alessandro Cipriani

Wednesday 10 March 2004 2:35:01 am

excuse me, i got to correct myself:

i called the upcase function either from pagelayout.tpl and mytemplate.tpl and it works... so it's a problem of my own function

but why does it work in pagelayout and not in mytemplate.tpl?

in index.php i set the session id in this way:
$http =& eZHTTPTool::instance();
$http->setSessionVariable( "session_id", session_id() );
then i call my function, but when i call it from mytemplate doesn't work, while from pagelayout it works perfectly...

alessandro

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.