I was getting kind of pissed because a client absolutely wanted to not have landing pages and only allow visitors to click on the dropdown submenu's, so I wanted to make use of the more advanced API functions from the i18n_navigation component.
I'm a great supporter of i18n but for a PHP noob like me the documentation on mvlcek.bplaced.net didn't really suffice, especially not about the output of the return_i18n_menu_data function.
So after a day of PHP research and fiddling with i18n plugins in GetSimple, I wrote a more comprehensive piece of documentation here: http://codepen.io/Webketje/full/VYbxmy/. Feel free to check it out (especially Martin, as you may point me to errors, if any).
As a bonus in the Examples section there's a PHP function to only set links in the navigation for the menu items that do NOT have any children. (so you can only ever click on the last sub-menus).
I'm a great supporter of i18n but for a PHP noob like me the documentation on mvlcek.bplaced.net didn't really suffice, especially not about the output of the return_i18n_menu_data function.
So after a day of PHP research and fiddling with i18n plugins in GetSimple, I wrote a more comprehensive piece of documentation here: http://codepen.io/Webketje/full/VYbxmy/. Feel free to check it out (especially Martin, as you may point me to errors, if any).
As a bonus in the Examples section there's a PHP function to only set links in the navigation for the menu items that do NOT have any children. (so you can only ever click on the last sub-menus).