Forums / Setup & design / wich template calls eztemplatestringoperator?

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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