| Thursday 04 August 2005 3:39:30 am 
                                                                
                                                                 With reference to this documentation page: http://ez.no/doc/ez_publish/technical_manual/3_6/templates/basic_template_tasks 
In my eZ project, I have:- explicitly overridden templates,
 - implicitly overridden templates (like pagelayout.tpl, which do not need an explicit entry in override.ini.append)
 - templates used by my custom extension.
 I noticed that, to access user parameters in templates passed like /..../(varname)/varvalue I have to use $view_parameters.varname for override templates, and $view_parameters.Userparameters.varname for my extension templates . This seems incoherent to me. Maybe I am doing something wrong? my vanilla php code for extension templates goes like this: 
<?
include_once( 'kernel/common/template.php'  );
$tpl = & templateInit();
$tpl->setVariable('view_parameters', $Params);
$Result = array();
$Result['content'] = &$tpl->fetch( 'design:wt/classifiche.tpl' );
$Result['path'] = array( array( 'url' => false,
				'text' => 'Le classifiche'  )  );
?>
If this is a desired behavior, I think it needs to be documented. |