CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Extending CiviCrm Menu
Pages: [1]

Author Topic: Extending CiviCrm Menu  (Read 2290 times)

cchan

  • Guest
Extending CiviCrm Menu
December 19, 2007, 01:15:58 pm
Hi, how do I add an extra menu item or group of menu items under CiviCRM Main Menu?
Thanks

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Extending CiviCrm Menu
December 19, 2007, 04:33:22 pm
There's no way to do this via administrative "configuration" (i.e. as you can do w/ Drupal or Joomla). However, you can create a 'custom' version of templates/CRM/Block/Menu.tpl and add items outside the main "loop". Check here for details on customizing templates:

http://wiki.civicrm.org/confluence/display/CRMDOC/Customize+Built-in+and+Profile+Screens
Protect your investment in CiviCRM by  becoming a Member!

cchan

  • Guest
Re: Extending CiviCrm Menu
December 19, 2007, 07:39:51 pm
Thanks Dave, apart from the template change, what other change we need to make in order to add a group of item like "Import" right below Manage Groups?

cchan

  • Guest
Re: Extending CiviCrm Menu
December 19, 2007, 07:52:01 pm
By the way, which component determines what menu items to be displayed at the CiviCRM Main menu?  Is it the CRM/Core/Menu.php?

Thanks.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Extending CiviCrm Menu
December 19, 2007, 08:30:23 pm
Yes - for "core" menu items. In addition, the optional components like CiviContribute have their own Menu.php files (e.g. Contribute/Menu.php etc.).

Of course, if you modify these files, then you'll need to keep track and re-implement for upgrades etc. If you can get the result you want with a custom copy of Block/Menu.tpl then your changes won't be over-written by an upgrade.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Extending CiviCrm Menu

This forum was archived on 2017-11-26.