Tuesday 09 March 2004 7:04:29 am
mark
thank you for the advice... :) i'm not able to make it work, but i'll write you what i've done:
-index.php, after row 333 (eZSessionStart();)
added the following: $http =& eZHTTPTool::instance();
$http->setSessionVariable( "MyVar", "MyValue" ); [in this way i think i've set a session variable (MyVar) with value "MyValue"]
-eztemplatestringoperator.php, row 301
added the following: // return a session variable
case $this->SessionVariable:
{
include_once( "lib/ezutils/classes/ezhttptool.php" );
$http =& eZHTTPTool::instance();
$operatorValue = $http->sessionVariable("MyVar");
} break; i wrote sessionvariable("MyVar") because i want to retrieve only the myvar value
-pagelayout.tpl: added the following:
{"MyVar"|SessionVariable} i want to retrieve the session variable. but in pagelayout i get "MyVar"... not myValue!!!!
i can give you my icq#: 326457502 help me please (then i'll take a very very long breath!!!) cheers alessandro
|