• Sign In
    • Forgot your password?
    • Forgot your username?

K2 | The powerful content extension for Joomla! developed by JoomlaWorks

  • home
  • about
  • blog
  • documentation
  • extend K2
  • showcase
  • community
  • demo
K2 brings the good parts from WordPress & Drupal into Joomla
You are hereblog Making K2 your preferred admin menus

Making K2 your preferred admin menus

15 October 2011, 20:22 by Alan Sparkes
Ever wanted to log in to your J1.5 admin and not see com_content in the menu? This little admin hack shows you how.
To lose the admin menu 'Content' or add K2 alongside it, open up /administrator/modules/mod_menu/helper.php
and find the following [line 110 in J1.5.23]:
 
/*
* Content SubMenu
*/
Replace the block of menu code with :
/*
* K2 Content SubMenu
*/
$menu->addChild(new JMenuNode(JText::_('K2')), true);
$menu->addChild(new JMenuNode(JText::_('Dashboard'), 'index.php?option=com_k2', 'class:menu'));
$menu->addChild(new JMenuNode(JText::_('Article Items'), 'index.php?option=com_k2&view=items', 'class:article'));
$menu->addChild(new JMenuNode(JText::_('Article Categories'), 'index.php?option=com_k2&view=categories&filter_trash=0', 'class:category'));
$menu->addChild(new JMenuNode(JText::_('Article Tags'), 'index.php?option=com_k2&view=tags', 'class:tags'));
$menu->addChild(new JMenuNode(JText::_('Article Comments'), 'index.php?option=com_k2&view=comments', 'class:comments'));
$menu->addSeparator();
$menu->addChild(new JMenuNode(JText::_('Users'), 'index.php?option=com_k2&view=users', 'class:user'));
$menu->addChild(new JMenuNode(JText::_('User Groups'), 'index.php?option=com_k2&view=userGroups', 'class:user'));
$menu->addSeparator();
$menu->addChild(new JMenuNode(JText::_('Extra Fields'), 'index.php?option=com_k2&view=extraFields', 'class:cpanel'));
$menu->addChild(new JMenuNode(JText::_('Extra Field Groups'), 'index.php?option=com_k2&view=extraFieldsGroups', 'class:cpanel'));

$menu->addSeparator();
$menu->addChild(new JMenuNode(JText::_('Trash'), 'index.php?option=com_k2&view=items&filter_trash=1', 'class:trash'));
$menu->getParent();
You'll now see the top bar main drop down menu with K2 specific items.
Discuss on the K2 forum

Tags:

  • admin ,
  • hack ,
  • backend ,
  • administrator ,
  • menus
Tweet
Author
Alan Sparkes

Alan Sparkes

www.joomkit.com

Creative Director and chief goffa at www.joomkit.com

Social Profiles

Twitter
  • Contact us
  • Privacy Policy
  • License
  • K2 Downloads
  • K2 Metrics
  • K2 on GitHub
back to top
Copyright © 2006 - 2025 JoomlaWorks Ltd. All rights reserved. K2 is a joint project by JoomlaWorks & Nuevvo, released under the GNU/GPL license.
Joomla is a registered trademark of Open Source Matters, Inc. K2 is not affiliated with or endorsed by Open Source Matters or the Joomla Project.
designed by Nuevvo