When you have a menu block that you want to use in an i18n site with a different menu per language you might want to be able to set the parent item per language. This can be done by making the variable that saves the parent id a language dependent variable.

The standard way only works with system settings forms. The patch attached to this issue also saves the parent id as a i18n variable. You will also have to add

  $conf['i18n_variables'][] = 'menu_block_3_parent';
  $conf['i18n_variables'][] = 'menu_block_4_parent';
  $conf['i18n_variables'][] = 'menu_block_5_parent';

to a hook_init() or your settings.php

This is issue is just as information for future generations or as a starting point for full integration so it can be closed if the maintainer wishes.

CommentFileSizeAuthor
menu_block.patch1.16 KBJax
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

maijs’s picture

Status: Active » Needs review

Jax, thank you a lot for this! It works as expected! Really useful if you want to have parent item set differently according to every language rather than making a block for each language which is cumbersome.

JohnAlbin’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)