"Home"-link disappears when I use Pepes Multilangu

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Tomasahl
Posts: 58
Joined: Thu 10. Mar 2005, 11:13
Location: Sweden
Contact:

"Home"-link disappears when I use Pepes Multilangu

Post 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.
Tomasahl
Posts: 58
Joined: Thu 10. Mar 2005, 11:13
Location: Sweden
Contact:

Post 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 :)
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post by pepe »

Hi Thomas....

congrats, it is the correct solution :lol:
Post Reply