global menu

Use this forum to ask questions about how to do things in GuMax skin.

global menu

Postby tut » March 5th, 2012, 9:13 pm

I use one global menu for all wikis at the very top of the page.

I achieve that through this function
Code: Select all
<?php include ('menu.html);
that is placed in gumax.php.

Now I need more menus in more language variatons. I have tried following, but it hasnt work.

Code: Select all
<?php
   switch ($_SERVER["SERVER_NAME"])
            {
# Hitman
                    case 'cs.hitman.pedie.eu':
                            $html_file_name =  'http://pedie.eu/pedie/main/menu/cs/menu.html';
                            break;

                    case 'pl.hitman.pedie.eu':
                            $html_file_name =  'http://pedie.eu/pedie/main/menu/pl/menu.html';
                            break;
                     }
                      ?>


How can I exactly do that?

Pls advise
User avatar
tut
Rank 3
Rank 3
 
Posts: 18
Joined: November 22nd, 2011, 4:29 pm

Re: global menu

Postby Paul » March 5th, 2012, 11:31 pm

what exactly are you going to archive?
User avatar
Paul
Development Team Leader
Development Team Leader
 
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: global menu

Postby tut » March 6th, 2012, 2:29 pm

In one directory will be menu in one language, in another directory will be menu in another language.

Example:

menu in language1 will have 10 wikis
menu in language2 will have another 10 wikis
menu in language3 will have another 10 wikis

Point is I need to specify path to directory with menu in correct language. It is a lil bit same as there, with gumax_template.css files.
User avatar
tut
Rank 3
Rank 3
 
Posts: 18
Joined: November 22nd, 2011, 4:29 pm

Re: global menu

Postby Paul » March 6th, 2012, 9:49 pm

So you can use the same logic if needed... but the way, the language setting should not be related to skin.
User avatar
Paul
Development Team Leader
Development Team Leader
 
Posts: 1132
Joined: October 20th, 2007, 2:23 pm


Return to GuMax 'How Do I' Questions

Who is online

Users browsing this forum: Steeler [Crawler] and 1 guest

cron