
Originally Posted by
gjh42
That will work fine for two languages, but not for more.
Balihr's directions in post 22 are the correct answer, if followed exactly. I reproduce them here, with red highlighting on the points that people seem to be missing:
All thanks go to Ajeh!
(end of balihr's instructions)
Hi I am looking for having multilingual banner in the side boxes.
Therefore coupling the above concept I mod the tpl_banner_box_all.php and set the layout to show in side banner box all, the group bannersAll.
Code:
$banner_cnt = 0;
while (!$banners_all->EOF) {
$banner_cnt++;
$banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET_ALL . $_SESSION['languages_id']);
$content .= zen_display_banner('static', $banners_all->fields['banners_id'] . $_SESSION['languages_id']);
I found in the db the languages id of my languages that are 2 for italian and 4 for english. I then assigned the localized banners to bannersAll2 and bannersAll4 but, unfortunately the result is no banners shown!
I am stuck now, because my knowledge is limited.
Can someone help?
Thanks
Enzo
Bookmarks