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) »
  • (Civix) inserting of navigation items
Pages: [1]

Author Topic: (Civix) inserting of navigation items  (Read 341 times)

jaapjansma

  • I post frequently
  • ***
  • Posts: 247
  • Karma: 9
    • CiviCoop
  • CiviCRM version: 4.4.2
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: 5.4
(Civix) inserting of navigation items
August 23, 2014, 08:32:53 am
Hey,

I have just discovered the following inconvience behaviour of the civix file in the extension directory. Which is that some custom navigation items wont show up in the navigation menu. This is caused by the civix_insert_navigation_menu

This function retrieves the new ID by an mysql query. However I have an installation with around 10 custom developed extensions and I discovered that this way other extensions which insert navigation menu items will get the same id again and again... And my navigation items won't show up in the menu.

I think the query for retrieving the max id of the navigation items should not rely upon a query but the menu array parameter
Developer at Edeveloper / CiviCoop

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: (Civix) inserting of navigation items
August 23, 2014, 08:34:23 am
You mean this happens when installing multiple extensions at once? Or any time?
Try asking your question on the new CiviCRM help site.

jaapjansma

  • I post frequently
  • ***
  • Posts: 247
  • Karma: 9
    • CiviCoop
  • CiviCRM version: 4.4.2
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: 5.4
Re: (Civix) inserting of navigation items
August 23, 2014, 08:48:37 am
This happens on a cache clear and on the rebuilding of the navigation menu
Developer at Edeveloper / CiviCoop

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • (Civix) inserting of navigation items

This forum was archived on 2017-11-26.