I am using Features module and Strongarm to add variable to my feature.

The value of this variable is id of menu item.

  $strongarm = new stdClass();
  $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
  $strongarm->api_version = 1;
  $strongarm->name = 'taxonomy_menu_vocab_parent_blog_category';
  $strongarm->value = '396';
  $export['taxonomy_menu_vocab_parent_category'] = $strongarm;

The problem is that on other site, where i enable my feature - that menu item has other id (not 396) - that is why this variable points to wrong menu item.

How i can solve this?

Can i transparently change this numeric id to something more site-independent (for example menu name plus menu item path, so instead 396 i will got "main-menu:blog") while variable is exported and imported?

Maybe i can write some preprocess function for this custom variable?

Comments

simon georges’s picture

Status: Active » Closed (duplicate)