Admin goes to content and then clicks "edit news". The menu changes to the dashboard menu, it should stay as the content menu.
Seen on 2.6.4
Clicking edit news changes the menu
Moderator: Thorsten
Re: Clicking edit news changes the menu
Fixed in header.php by adding:
case 'news':
to the following:
switch ($action) {
case 'user':
case 'group':
case 'passwd':
case 'cookies':
$secLevelHeader = $PMF_LANG['admin_mainmenu_users'];
$secLevelEntries .= addMenuEntry('adduser+edituser+deluser', 'user', 'ad_menu_user_administration', $action);
if ($groupSupport) {
$secLevelEntries .= addMenuEntry('adduser+edituser+deluser', 'group', 'ad_menu_group_administration', $action);
}
$secLevelEntries .= addMenuEntry('passwd', 'passwd', 'ad_menu_passwd', $action);
$dashboardPage = FALSE;
$userPage = TRUE;
break;
case 'content':
case 'category':
case 'addcategory':
case 'savecategory':
case 'editcategory':
case 'translatecategory':
case 'updatecategory':
case 'deletecategory':
case 'removecategory':
case 'cutcategory':
case 'pastecategory':
case 'movecategory':
case 'changecategory':
case 'showcategory':
case 'editentry':
case 'insertentry':
case 'view':
case 'glossary':
case 'saveglossary':
case 'updateglossary':
case 'deleteglossary':
case 'addglossary':
case 'editglossary':
case 'news';
case 'addnews':
case 'editnews':
case 'delnews':
case 'question':
case 'comments':
$secLevelHeader = $PMF_LANG['admin_mainmenu_content'];
$secLevelEntries .= addMenuEntry('addcateg+editcateg+delcateg', 'category', 'ad_menu_categ_edit', $action);
$secLevelEntries .= addMenuEntry('editbt+delbt', 'view', 'ad_menu_entry_edit', $action);
$secLevelEntries .= addMenuEntry('addnews+editnews+delnews', 'news', 'ad_menu_news_edit', $action);
$secLevelEntries .= addMenuEntry('delquestion', 'question', 'ad_menu_open', $action);
$secLevelEntries .= addMenuEntry('delcomment', 'comments', 'ad_menu_comments', $action);
$secLevelEntries .= addMenuEntry('addglossary+editglossary+delglossary', 'glossary', 'ad_menu_glossary', $action);
$secLevelEntries .= addMenuEntry('addbt', 'editentry', 'ad_entry_add', $action);
$dashboardPage = FALSE;
$contentPage = TRUE;
break;
case 'statistics':
case 'viewsessions':
case 'sessionbrowse':
case 'sessionsuche':
case 'adminlog':
case 'searchstats':
$secLevelHeader = $PMF_LANG['admin_mainmenu_statistics'];
$secLevelEntries .= addMenuEntry('viewlog', 'statistics', 'ad_menu_stat', $action);
$secLevelEntries .= addMenuEntry('viewlog', 'viewsessions', 'ad_menu_session', $action);
$secLevelEntries .= addMenuEntry('adminlog', 'adminlog', 'ad_menu_adminlog', $action);
$secLevelEntries .= addMenuEntry('viewlog', 'searchstats', 'ad_menu_searchstats', $action);
$dashboardPage = FALSE;
$statisticsPage = TRUE;
break;
case 'export':
$secLevelHeader = $PMF_LANG['admin_mainmenu_exports'];
$secLevelEntries .= addMenuEntry('', 'export', 'ad_menu_export', $action);
$dashboardPage = FALSE;
$exportsPage = TRUE;
break;
case 'backup':
$secLevelHeader = $PMF_LANG['admin_mainmenu_backup'];
$secLevelEntries .= addMenuEntry('', 'backup', 'ad_menu_export', $action);
$dashboardPage = FALSE;
$backupPage = TRUE;
break;
case 'config':
case 'linkconfig':
case 'stopwordsconfig':
case 'translist':
case 'transedit':
case 'transadd':
case 'upgrade':
$secLevelHeader = $PMF_LANG['admin_mainmenu_configuration'];
$secLevelEntries .= addMenuEntry('editconfig', 'config', 'ad_menu_editconfig', $action);
$secLevelEntries .= addMenuEntry('editconfig+editbt+delbt', 'linkconfig', 'ad_menu_linkconfig', $action);
$secLevelEntries .= addMenuEntry('editconfig', 'stopwordsconfig', 'ad_menu_stopwordsconfig', $action);
$secLevelEntries .= addMenuEntry('edittranslation+addtranslation+deltranslation', 'translist', 'ad_menu_translations', $action);
$dashboardPage = FALSE;
$configurationPage = TRUE;
break;
default:
$secLevelHeader = $PMF_LANG['admin_mainmenu_home'];
$secLevelEntries .= addMenuEntry('addcateg+editcateg+delcateg', 'category', 'ad_menu_categ_edit');
$secLevelEntries .= addMenuEntry('addbt', 'editentry', 'ad_quick_record');
$secLevelEntries .= addMenuEntry('editbt+delbt', 'view', 'ad_menu_entry_edit');
$secLevelEntries .= addMenuEntry('delquestion', 'question', 'ad_menu_open');
$dashboardPage = TRUE;
break;
}
case 'news':
to the following:
switch ($action) {
case 'user':
case 'group':
case 'passwd':
case 'cookies':
$secLevelHeader = $PMF_LANG['admin_mainmenu_users'];
$secLevelEntries .= addMenuEntry('adduser+edituser+deluser', 'user', 'ad_menu_user_administration', $action);
if ($groupSupport) {
$secLevelEntries .= addMenuEntry('adduser+edituser+deluser', 'group', 'ad_menu_group_administration', $action);
}
$secLevelEntries .= addMenuEntry('passwd', 'passwd', 'ad_menu_passwd', $action);
$dashboardPage = FALSE;
$userPage = TRUE;
break;
case 'content':
case 'category':
case 'addcategory':
case 'savecategory':
case 'editcategory':
case 'translatecategory':
case 'updatecategory':
case 'deletecategory':
case 'removecategory':
case 'cutcategory':
case 'pastecategory':
case 'movecategory':
case 'changecategory':
case 'showcategory':
case 'editentry':
case 'insertentry':
case 'view':
case 'glossary':
case 'saveglossary':
case 'updateglossary':
case 'deleteglossary':
case 'addglossary':
case 'editglossary':
case 'news';
case 'addnews':
case 'editnews':
case 'delnews':
case 'question':
case 'comments':
$secLevelHeader = $PMF_LANG['admin_mainmenu_content'];
$secLevelEntries .= addMenuEntry('addcateg+editcateg+delcateg', 'category', 'ad_menu_categ_edit', $action);
$secLevelEntries .= addMenuEntry('editbt+delbt', 'view', 'ad_menu_entry_edit', $action);
$secLevelEntries .= addMenuEntry('addnews+editnews+delnews', 'news', 'ad_menu_news_edit', $action);
$secLevelEntries .= addMenuEntry('delquestion', 'question', 'ad_menu_open', $action);
$secLevelEntries .= addMenuEntry('delcomment', 'comments', 'ad_menu_comments', $action);
$secLevelEntries .= addMenuEntry('addglossary+editglossary+delglossary', 'glossary', 'ad_menu_glossary', $action);
$secLevelEntries .= addMenuEntry('addbt', 'editentry', 'ad_entry_add', $action);
$dashboardPage = FALSE;
$contentPage = TRUE;
break;
case 'statistics':
case 'viewsessions':
case 'sessionbrowse':
case 'sessionsuche':
case 'adminlog':
case 'searchstats':
$secLevelHeader = $PMF_LANG['admin_mainmenu_statistics'];
$secLevelEntries .= addMenuEntry('viewlog', 'statistics', 'ad_menu_stat', $action);
$secLevelEntries .= addMenuEntry('viewlog', 'viewsessions', 'ad_menu_session', $action);
$secLevelEntries .= addMenuEntry('adminlog', 'adminlog', 'ad_menu_adminlog', $action);
$secLevelEntries .= addMenuEntry('viewlog', 'searchstats', 'ad_menu_searchstats', $action);
$dashboardPage = FALSE;
$statisticsPage = TRUE;
break;
case 'export':
$secLevelHeader = $PMF_LANG['admin_mainmenu_exports'];
$secLevelEntries .= addMenuEntry('', 'export', 'ad_menu_export', $action);
$dashboardPage = FALSE;
$exportsPage = TRUE;
break;
case 'backup':
$secLevelHeader = $PMF_LANG['admin_mainmenu_backup'];
$secLevelEntries .= addMenuEntry('', 'backup', 'ad_menu_export', $action);
$dashboardPage = FALSE;
$backupPage = TRUE;
break;
case 'config':
case 'linkconfig':
case 'stopwordsconfig':
case 'translist':
case 'transedit':
case 'transadd':
case 'upgrade':
$secLevelHeader = $PMF_LANG['admin_mainmenu_configuration'];
$secLevelEntries .= addMenuEntry('editconfig', 'config', 'ad_menu_editconfig', $action);
$secLevelEntries .= addMenuEntry('editconfig+editbt+delbt', 'linkconfig', 'ad_menu_linkconfig', $action);
$secLevelEntries .= addMenuEntry('editconfig', 'stopwordsconfig', 'ad_menu_stopwordsconfig', $action);
$secLevelEntries .= addMenuEntry('edittranslation+addtranslation+deltranslation', 'translist', 'ad_menu_translations', $action);
$dashboardPage = FALSE;
$configurationPage = TRUE;
break;
default:
$secLevelHeader = $PMF_LANG['admin_mainmenu_home'];
$secLevelEntries .= addMenuEntry('addcateg+editcateg+delcateg', 'category', 'ad_menu_categ_edit');
$secLevelEntries .= addMenuEntry('addbt', 'editentry', 'ad_quick_record');
$secLevelEntries .= addMenuEntry('editbt+delbt', 'view', 'ad_menu_entry_edit');
$secLevelEntries .= addMenuEntry('delquestion', 'question', 'ad_menu_open');
$dashboardPage = TRUE;
break;
}
Re: Clicking edit news changes the menu
Hi,
thanks for the hint, it's fixed now for the 2.6.9 release.
bye
Thorsten
thanks for the hint, it's fixed now for the 2.6.9 release.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist