WIP allow to place custom-fields in tabs: fix not working saving of preferences, because namespace / content attribute was not passed to template

This commit is contained in:
ralf 2024-03-27 11:21:47 +02:00
parent ef3ca2acb4
commit 470216d165

View File

@ -71,6 +71,7 @@ class Tabbox extends Etemplate\Widget
foreach($tabs as &$tab)
{
$template= clone Template::instance($tab['template']);
if (isset($tab['content'])) $template->attrs['content'] = $tab['content'];
$this->children[1]->children[] = $template;
$tab['url'] = Template::rel2url($template->rel_path);
//$this->tabs[] = $tab;