Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 01:24:55 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155554 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: "multi menu" combined with "multilingual problem"  (Read 6124 times)
mamboernst

Offline Offline

Posts: 6


« on: December 03, 2006, 04:04:36 PM »

Hey Folks,
first of all I wanna say that this all here is great! I'm building a page for a hostel in Berlin but now I'm struggling a little with the multilingual and multi menu options...

I'm a php dummy...

to have a look, check my page online under http://www.choose-your-colour.de/pages/paradise/


ok, The website is multilingual and I set up the structure:

----------------------------------------------
de
+ home
+ unterkünfte
+ kontakt
+ links

en
+ home
+ accomodation
+ contact
+ links

pictures

guestbook
----------------------------------------------

I'm working with the multi menu funktion enabled, "de" and "en" is set as menu1 and "pictures" and "guestbook" is set as menu2


In the index.php the code is:
Code:
<?php show_menu(1,1,-1); ?>

which works fine for the first menu!


for the second menu the code is
Code:
<?php page_menu(0,2); ?>


well, both menus seem to appear in the right way like this, but if i click on items from the second menu ("pictures" or "guestbook") the first menu disappears or does strange things... Sad I read many many topics here in the forum now, but couldn't help myself...

what am I doing wrong??? I would be really happy if someone could help!
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6977


WWW
« Reply #1 on: December 03, 2006, 05:10:51 PM »

[EDIT] Sorry, I realised to late, that you wrote in English ... are you OK with a German answer?[/EDIT]

OK .. das Tutorial baut darauf auf, dass Du im Top Level NUR die Sprach Seiten (ich bevorzuge mittlerweile Menülinks) hast und keine anderen.

Der Fehler mit dem Menü von dem "Sub-Sprach Menü" kommt daher, weil dieser Menü auffruf nur die Kinder der aktuellen Haptseite anzeigt (z.B. alle Kindern von DE, EN oder, in Deinem Fall "pictures" & "guestbook).

1) Es gibt Menü 0 nicht wirklich. Sobald Du die Multiplen Menüs aktiviert hast, ist Menü 1 das erste Menü (Stadardmenü).

2) Die Optionen von Show Menü ... schau Dir diese seite hier an, dort findest Du weitere Infromationen über die Funktion show_menu: http://projects.websitebaker.org/websitebaker2/wiki/Docs-DE-show_menu

Gruß

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

mamboernst

Offline Offline

Posts: 6


« Reply #2 on: December 03, 2006, 05:49:46 PM »

thanks for the quick response... auch in Deutsch...  cool
I'll stick to englisch, maybe some more people might benifit from it ...

-------------------------------------------------------

basically I still don't know how to solve my problem.
you wrote that - because i enabled multi menus - there is no menu0...

so I had a look in the infromation about the "show_menu" function and thaught it might help if i just change my index.php to the following...

code for the 2nd menu:
Code:
<?php page_menu(2,0,-1,false); ?>

as I understood, that would mean to show the complet menu...

But, there is nothing from the menu left now... (please see my homepage link above)


Questions:
1.) Is it possible at all, to have a multilingual menu in the way described in the tutorial (which i used) and than another menu below that with non lingual contents / "global contents"Huh

in my case, the main menu to get information about the hostel in the prefered language and than a nother menu, with "global" contents as f.e. one guestbook for all users, no matter what language they choose.

2.) If yes, HOW?   smiley

3.) if no, what would be a soloution for that?

thanks in advance!!!
Ernst

Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6977


WWW
« Reply #3 on: December 03, 2006, 06:31:48 PM »

The global pages can always be made "invisible" and then linked back (PageType "Menulink") from the subpages.

That might still render your other menu useless (since they are then top level pages). So you might need a bit of code, which checks the refering page and then set's a back button or the relevant menu call.

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #4 on: December 03, 2006, 08:25:39 PM »

Hello,

i see you call the menu once with show_menu and once with page_menu. page_menu is an older call and have not all functions of show_menu. So maybe renaming it to show_menu solves yout problem.

If not why not using a third menu for the guestbook and pictures. Multiple menus mean not only two, you also can have more.

And third idea is to use show_menu2. With this you have a lot of more options.

Matthias
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6977


WWW
« Reply #5 on: December 03, 2006, 09:44:46 PM »

I didn't even see that ... you should definatly switch the second call either over to show_menu or the add-on show_menu2 ...

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

mamboernst

Offline Offline

Posts: 6


« Reply #6 on: December 04, 2006, 12:07:28 AM »

hey hey... still no luck, even after changin the code from page_menu to show_menu...  cry

Quote
If not why not using a third menu for the guestbook and pictures. Multiple menus mean not only two, you also can have more.

maybe I dont' understand you right, but how can that help, if i can not even get 2 menus working together?


Quote
The global pages can always be made "invisible" and then linked back (PageType "Menulink") from the subpages.

That might still render your other menu useless (since they are then top level pages).

i tried that, and indeed I can have the menu where I want it. Once clicked on f.e. "guestbook", I come to the guestbook, but unfortunatly  the hole menu is gone...

Quote
So you might need a bit of code, which checks the refering page and then set's a back button or the relevant menu call.

how can I do that? how and where could I do the "relevant menu call"... you have to know, I'm very poor in php...



for now, I realised another (in my opinion very poor) idea. I made exectly what was described above (the global pages invisible and than a "menu link" in subpages of "de" and "en" and i chose the option to open the link in a new window, not in the same! So it doesn't matter if the menu is gone, the page visitors just have to close the new window again, and they are back on the page...
Yeah, but as I said, that's not a very satisfying solution!

would be very happy if someone would know, how I could have everything in one window with full menu...  smiley
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6977


WWW
« Reply #7 on: December 04, 2006, 08:32:06 AM »

OK ... send me your template (for e-mail PM me) and I'll have a look. I'll try to recreate your setup and then we'll see.

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

mamboernst

Offline Offline

Posts: 6


« Reply #8 on: December 09, 2006, 12:26:00 PM »

 smiley
ok, I finished my project and just wanted to say Thanks for all this help.


If there are people who have a similar idea as mine and are interressted in the solution for the problem here is a quick description:

with the "wrapper" module (it was already installed with my version 2.64) i could manage to make the menu they way I wanted it:

a multilingual menu together with some nonlingual contents (i called them my "general" pages)

ok, the final structure is:

de
+ home
+ unterkünfte
+ kontakt
+ links
+ Gästebuch (here I used a "Wrapper" with a link to /pages/general/guestbook.php
+ Bilder (here I used a "Wrapper" with a link to /pages/general/pictures.php

en
+ home
+ accomodation
+ contact
+ links
+ guestbook (here I used a "Wrapper" with a link to /pages/general/guestbook.php
+ our pictures (here I used a "Wrapper" with a link to /pages/general/pictures.php
 
general
+ pictures
+ guestbook


ok, and it was important to set the template for pictures and guestbook on blank (you find this in the options of each site) because otherwise the hole page (including the menu) is opening in the iframe in the middle aggain...

maybe this makes more sense if you see the final page,
http://www.choose-your-colour.de/pages/paradise/ 

enjoy, keep going, and special thanks especially to kweitzel,
Ernst
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6977


WWW
« Reply #9 on: December 09, 2006, 01:27:35 PM »

Ernst, thanks for the "thanks" grin ... maybe try to modify the wrapper height. You can do that in the file view(.)php of the module directory (but then it is only 1 general modification for all pages!).

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

tomhung

Offline Offline

Posts: 353


« Reply #10 on: December 15, 2006, 06:49:45 PM »

maybe I'm oversimplifying the problem....

This would be my structure

guestbook (hidden)
gallery (hidden)

de
+ home
+ unterkünfte
+ kontakt
+ links
+ Gästebuch (menu link to hidden guestbook)
+ Bilder (menu link to hidden gallery)

en
+ home
+ accomodation
+ contact
+ links
+ guestbook (menu link to hidden guestbook)
+ our pictures (menu link to hidden gallery)

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!