Оказалось все не так просто
создал ссылку на редактирование материала
$editur[$row['id']] = $this->
CreateLink($id, 'defaultadmin', $returnid, $gCms->variables['admintheme']->DisplayImage('icons/system/edit.gif', $this->Lang('edit'),'','','systemicon'), array('editid'=>$ecity_ur_id[$row['id']]));
и затем проверим значение показываю форму редактирования с другой странице..
if (isset($params['editid'])) {
$smarty =& $this->smarty;
$smarty->assign('defaulttemplateform_title',$title);
$smarty->assign('info_title',$info);
$smarty->assign('startform',
$this->CreateFormStart($id,'setdefaulttemplate',$returnid,'post','',false,'',
array('prefname'=>$prefname,
'active_tab'=>$active_tab,
'filename'=>$filename)));
$smarty->assign('editing',$this->Lang('editing'));
$smarty->assign('input_template', $this->CreateInputText($id, 'event_name', $ecity_ur[$params['editid']], 30));
//$smarty->assign('input_template',$this->CreateInputText(false,$id,
// $this->GetPreference($prefname),
//'input_template'));
$smarty->assign('submit',$this->CreateInputSubmit($id,'submit',$this->Lang('submit')));
$smarty->assign('cancel',$this->CreateInputSubmit($id,'submit',$this->Lang('cancel')));
$smarty->assign('endform',
$this->CreateFormEnd());
echo $this->ProcessTemplate('edit.tpl');
}
взял для примера новостной блок
Но все равно выводя эту форму, она показывается в верхней части а нижнаяя часть остается.(см изображение)
Как можно показать эту форму но чтоб нижняя часть не показывалась..
