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.
Comment | File | Size | Author |
---|---|---|---|
menu_block.patch | 1.16 KB | Jax | |
Comments
Comment #1
maijs CreditAttribution: maijs commentedJax, 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.
Comment #2
JohnAlbin