Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 04:38:05 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: problem with Multilingual Websites  (Read 778 times)
babsy

Offline Offline

Posts: 322


« on: February 01, 2008, 11:10:46 AM »

Hi everyone!

I have made a Multilingual Website..... and it works fine... exept when i make a news page!!
when i make the newspage and they press on read more - you can see all the pages on the menu bar (also the "firspage" and "EN" and "FO" the language main pages???

but its only under the newspages this is, all the other pages are fine??

www.mynd.fo (the news are under "tíðindi" - then just press on the headline) and you´ll see what i mean  huh huh

anyone know what to do here  huh
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6977


WWW
« Reply #1 on: February 01, 2008, 07:16:52 PM »

What menucall do you use?

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

babsy

Offline Offline

Posts: 322


« Reply #2 on: February 04, 2008, 10:07:28 AM »

hi.... im using this code, i took it from one of the templates i think, so im not sure if its correct, but the weird thing is, that i have made another mulitlingual website, just the same way, and it works fine?  huh huh

but im might be missing something?

------------------------------------------------------------------------------
<div id="mainmenu" align="center" valign="middle">
<ul>
<?php

// Get language page link
$parse_wb_url = parse_url(WB_URL);
$set = $parse_wb_url['path'];
$actual = $_SERVER['REQUEST_URI'];
$pageslen = strlen(PAGES_DIRECTORY);
$language_link = substr(str_replace($set, '', $actual), $pageslen, 3);

// Get language page id
$result = $database->query("SELECT page_id FROM ".TABLE_PREFIX."pages WHERE link = '$language_link' LIMIT 0,1");
if($result->numRows() > 0) {
  $page = $result->fetchRow();
  page_menu($page['page_id']);
} else {
  // Can't figure out the root ID, so just use normal menu
  page_menu(0);
}

?>
</ul>
</div>
---------------------------------------------------------------------
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6977


WWW
« Reply #3 on: February 05, 2008, 06:49:20 AM »

Maybe that is the reason why it fails. Try the updated tutorial:

http://help.websitebaker.org/pages/en/advanced-docu/designer-guide/multilingual-websites.php

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

babsy

Offline Offline

Posts: 322


« Reply #4 on: February 06, 2008, 12:27:41 PM »

Hi...

I have been going through the tutorioal severeal times now.. and everything should be ok!... but it still happens, when i make a news page...

my other multi.. lang. page is working fine,, even if i make a news page, its just this one that won´t work, and i can´t figure it out why? they are build the exect same way....

www.mynd.fo - now the flags are ok.. but still undir news (tíðindi") it gets messed up? huh huh
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6977


WWW
« Reply #5 on: February 07, 2008, 07:38:45 AM »

But did you try the different menucalls? The one you posted above is of the "old" tutorial which is a bit outdated.

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

babsy

Offline Offline

Posts: 322


« Reply #6 on: February 07, 2008, 09:34:49 AM »

ok.. i think i have, but i will give it a try again.... and get back Smiley
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!