Page 1 of 1

"Home"-link disappears when I use Pepes Multilangu

Posted: Sat 1. Jul 2006, 20:26
by Tomasahl
Hi.


I try to get a multilanguage version and with the help of pepe I have one. But it is not quite OK. i try to follow the leads from the sticky-thread on multilanguage, but halfway through it becomes a germans only version, and i don't understand anything.

My problem is that when I follow the leads, and put:

Code: Select all

[PHP]
$check_id = $GLOBALS['content']['cat_id'];
while( $GLOBALS['content']['struct'][$check_id]['acat_struct'] <> 0 ) {
$check_id = $GLOBALS['content']['struct'][$check_id]['acat_struct'];
}
echo "{NAV_ROW:$check_id";
echo ":0}";
[/PHP]

<!-- Umschaltung/switch -> ENGELSKA-->
&nbsp;&nbsp;
<a href="index.php?en{PHP:scripts/strip-prefix.php}" target="_self">{IMAGE:../flags/english.gif}</a>{SPACER:5x1}
in the header part of the standard template, and then put

Code: Select all

index.php?sw-homepage
in the main entry article to reroute to the swedish version I get it right. The indexpage that opens as the main/first is infact the swedish version, and if i click on a flag I get the english version.

But the "home"-link in the menu is gone. And since i don't want a leftside menu but only one in the header, it seems I can't have a multilingual site.

Or?

The structure is like pepe suggested in another thread:

Index
- HEM (sw-homepage )
- HOME (en-homepage)

And so on

Maybe I shall remove the "index"-level? Or just try to live with it?
Sorry to ask, but since it is mainly german threads I just get lost in translation sometimes.

Posted: Sat 1. Jul 2006, 21:15
by Tomasahl
Edited: I actually solved it by changing echo=0 to echo=1. Don't know if it is the right solution, but at the moment i don't care as long as it works :)

Posted: Sun 2. Jul 2006, 00:07
by pepe
Hi Thomas....

congrats, it is the correct solution :lol: