Xili-language: languages list insertion in nav menu

This post presents the new way to insert languages list in navigation menu (with xili-language version 2.8.8+)

Previous features

Via the third tab of settings (for experts), it was possible to append at end of a navigation menu, the list of languages links.

NavMenuOldResult.png

New way

Using the Appareance/Menus settings screen, since version 2.8.8+, it is now possible to choose the insertion point of the list of languages.

NavMenuInsert.png

In the left part (1) a new metabox describes what type of list to insert and to add (2) to the current edited menu (here named New-Menu).

Using drag and drop feature, in this example the list is inserted (3) between news category and Sample page. The content cannot be modified (4). It is used by xili-language to generate the language list according rules and place inside the website. (For very special uses, target can be set to _blank).

The result below on frontend:

NavMenuResult.png

and without styles (css for flag)

NavMenuResult-t.png

Questions

What about previous version and ways to made menus ?

The third tab in xili-language settings is conserved for backward compatibility. So, if you want to change, you can uncheck in that tab and insert anywhere an insertion point via Menus builder

Why 4 types of list are choosable ?

As in previous method, the links (to switch between languages) and behaviors can be adapted to the content strategy of the multilingual website.

Nav Menu: The switch is always done towards the home page in target language.

Nav Menu (w/o current lang.): The switch is always done towards the home page in target language. But the list don't contain the current displayed language.

Nav Menu Singular: The switch is done (if possible) towards the linked post or page in target language.

Nav Menu Singular (w/o current lang.) The switch is done (if possible) towards the linked post or page in target language. But the list don't contain the current displayed language.

What about flags and style ?

Flags and styles are totally dependent on the theme. With twentyten, twentyeleven, twentytwelve and now twentythirteen, dev.xiligroup provides child theme examples with style and picture adds.

Is it possible to insert languages list in sub-menu level ?

Yes, but be aware that the style.css must be adapted in the theme...