WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: Boudi on April 08, 2008, 02:48:49 PM

Title: Create footer menu?
Post by: Boudi on April 08, 2008, 02:48:49 PM
Hi,

I'm working on a project which is a multilanguage site which has a horizontal drop down menu. I would like to have a horizontal footer menu too for each language.

1st I tried the usual way to implement 2 menu structures into the template but this does not work well (I think because of the multilanguage)?

2nd I thought the easiest way would be to show the hidden pages from each language container in the footer with the show_menu2. But this does not work for me right now :(

Is there a 3rd way what could make this possible?
Title: Re: Create footer menu?
Post by: GRID8400 on April 14, 2008, 11:33:09 AM
3rd: harcode / hack frontend.functions. php the footer part something like this:

<a href="';
if(LANGUAGE == "NL"){ echo "site_nl/whatever.php"; }else{ /* English */  echo "site_uk/whatever.php"; }
echo '" target="_top">whatever</a>   
<a href="';
        echo str_replace($vars, $values, WEBSITE_FOOTER);
       

downpart: update WB and it will be lost...
insert it into CMS backend footer will not parse the code.. so you have to hack frontend.fucntions. php
Title: Re: Create footer menu?
Post by: ruebenwurzel on April 14, 2008, 12:09:23 PM
Hello,

there is no need for changing any core files to get a footer menu. This is realizable with a simple call of show_menu2 (or show_menu) and the needed css styles.

As knert didn't get any menu working (if you read his other threads) there seems to be a server misskonfiguration issue or his pages tree structure in combination with the menu calls and the css seems to be the problem.

Matthias
Title: Re: Create footer menu?
Post by: GRID8400 on April 14, 2008, 01:41:17 PM
@ruebenwurzel: true, but i was lazy, and for the site I used it on I had multiple skin's and didn't wanted to update al the skins. anyways..
Title: Re: Create footer menu?
Post by: Boudi on April 14, 2008, 02:33:32 PM
@ Grid and Matthias,

thank you for your answers.

@ matthias: I'm working on a server with PHP V5.0.22 and Safe_Mode disabled. I don't think (but I could be wrong of course) that the serverconfiguration is the issue in my case. If it is than I would be very happy to be notified about what could cause my problem. But now I'm gliding off this topic.

I work on several projects at the same time. A few minutes ago I added on a single-language project a horizontal footer menu (SM2) and this works like a charm.

Thanks for your help anyway regarding the footer issue.