Multilanguage and onepage layout

RonR

Works like a charm!
Thanks for your help, Ruud!

Ron

Ruud

The get_onePagerData() is starting with this query:
Code (original) Select
$p = $database->query("SELECT * from ".TABLE_PREFIX."pages where `visibility` = 'public' order by `position`");

Try changing that to:
Code (untested) Select
$p = $database->query("SELECT * from ".TABLE_PREFIX."pages where `visibility` = 'public' AND `language`='".LANGUAGE."' order by `position`");

It should get only pages in the current language.
[url=https://dev4me.com/modules-snippets/]Dev4me - WebsiteBaker modules[/url] - [url=https://wbhelp.org/]WBhelp.org[/url]

RonR

Trying to make a onepage layout template multilingual with Mod Multiligual.

Getting all pages in all languages in the menu, so I need to get the $iMultiLang somewhere in the  function show_menu?

OR a  way to make the "function get_onePagerData()" select only the pages in the current language.

I am not much of a coder.
Anyone any ideas?

Ron