MetaMod - display modules according to rules
    Wonderful!!, May 30, 2008 |
...and I was looking for a way to show modules according to user language-selection.
MetaMod is so versatile, it does SO many things, and it can show modules according to language-selection too!
I don't use JoomFish, because on Joomla1.5.2 it messes up with Community Builder.
Actually I don't need to use any of the language plugins, they are too much trouble for nothing if you ask me!
I only needed to put 5 lines of simple code in only 4 of my files, to have a language-selector on front-end, and articles showing in user's language of choice!
Components use language files!
Modules too!
BUT not Joomla's menus (!!how's that?)
So how was I to show language-specific menus on my site??
MetaMod came to save the day!!
And Stephen was MOSTLY helpful!
the solution to my problems became ridiculously easy by using MetaMod!
in my case I only had to add a code in MetaMod's PHP textbox like this:
$language = $mainframe->getCfg('language');
if ($language=="en-GB") return 11;
if ($language=="el-GR") return 22; //example numbers
Now my site is totally multi-lingual, without going nuts with all the menus, and buttons, and options, and editing, and,and,and of applications like JoomFish, M17N, and the likes!
Wonderful!!
Thank you again Stephen for this fantastic module!
|
|