Google translator »

(Opens in a new window - öffnet in einem neuen Fenster)


Short Doku CMSimple-Plugin "LanguageMenuP2P"

The Plugin LanguageMenuP2P provides an alternative function lmp2p(), as replacement for the CMSimple function languagemenu(). This language menu does not link to the homepage of another language, but to a page with the same P2P ID as the linking page.

If there not exists a page with the same P2P ID in the other language, no link (flag) to this language appears.

So you have to set a unique P2P ID for every page, if LanguageMenuP2P shall work for all pages. That you can do in edit mode, in the tab lmP2P above the editor.

System Requirements

LanguageMenuP2P requires CMSimple 4.5 or higher.

Recommended is the current version from cmsimple.org »

Installation

Unzip the zip file and upload the folder /langmenup2p/ with all folders and files to the folder /plugins/ of your CMSimple-Installation.

Usage

Replace the function languagemenu() by lmp2p() in the template.htm of your template:

<?php echo lmp2p();?>

Page Translations Overview

For an overview of already existing P2P IDs go to: Plugins => langmenup2p => Plugin Main Settings

Special characters in URLs

In the CMSimple language files of ALL ​​involved languages, in "Urichar New" and "Urichar Org" the special characters (such as umlauts, accents, etc.) of ALL involved languages must be entered, so that a correct URL encoding is ensured.

Credits

Many thanks to Jesper Zedlitz, who allowed me to use code and idea of his plugin MultiLang for LanguageMenuP2P.