Dons Blogeintrag beschreibt da alles ja ganz schön. Du benötigst in der TEMPLATE/config.inc.php:
Code: Select all
/* if is, include the 2cd array part behind a comma to an existing $template_config!
$template_config = array(
array(
'var' => 'sidebars',
'name' => SIDEBAR_TITLE,
'type' => 'hidden',
'default' => 'left,hide,right,top,middle'
));
like
),
array(
'var' => 'sidebars',
'name' => SIDEBAR_TITLE,
'type' => 'hidden',
'default' => 'left,hide,right,top,middle'
)
);
if you want to have this configurable in your templates config, use
'type' => 'string',
*/Die von dir bereits eingefügte $topSidebarElements Anweisung etc, muss unterhalb von $template_loaded_config =
Code: Select all
$template_loaded_config = serendipity_loadThemeOptions($template_config, $serendipity['smarty_vars']['template_option']);
$topSidebarElements = serendipity_plugin_api::count_plugins('top');
$serendipity['smarty']->assign_by_ref('topSidebarElements', $topSidebarElements); Nun musst du in der Admin Panel / Plugin Konfiguration, deine Sidebar Plugions nur noch in die richtige Sidebar schieben und speichern!
Dann erst bekommst du auch Werte für deine {$topSidebarElements} und {$footerSidebarElements}
Dein $sidebars ='top,footer,hide'; bewirkt gar nichts, egal ob du obigen Weg einschlägst oder nicht, meine ich.