normal ot_photographer error on Multiple languages. / help me

More
10 years 11 months ago - 10 years 11 months ago #4741 by varit veekaew
templates : ot_photographer
Joomla 2.5
www.bettabook.com
error -> www.bettabook.com/solve/layout.jpg
i sand config , password to [email protected]

I have a problem.
I want to make a website in 2 languages​​ (Thai & English).
But there are issues. When the Main menu, press the 2 languages ​​will not go home-layout ,But it go to inside layout.

I think need to fix that Mod_menu & templates.
I can not solve this problem. Please help me.

Best Regards,
varitv

Last edit: 10 years 11 months ago by varit veekaew.

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago - 10 years 11 months ago #4746 by varit veekaew
OK ! I found the problem.


\templates\ot_photographer\lib\layout\tpl.function.php

Line number 65
before
//Check Home Page
$menu =& JSite::getMenu();
$menuActive = $menu->getActive();
if($menuActive == $menu->getDefault()){
$home = 'isHomePage';
}else{
$home = 'isInnerPages';
}

//$layoutView = &JRequest::getVar( 'layoutview' ) == $this->params->get('layoutType');

new edit

//Check Home Page
$menu =& JSite::getMenu();
$menuActive = $menu->getActive();
if($menuActive == $menu->getDefault()){
$home = 'isHomePage';
}else{
$home = 'isInnerPages';
}

$menu =& JSite::getMenu(); // Load the menu
$active = $menu->getActive(); // Get the current active menu
if ($active->home ==1) { // See if this is the homepage
$home = 'isHomePage';
} else {
$home = 'isInnerPages';
}

//$layoutView = &JRequest::getVar( 'layoutview' ) == $this->params->get('layoutType');

End edit

OK ! It WORK

Best Regards,
varitv
Last edit: 10 years 11 months ago by varit veekaew.

Please Log in or Create an account to join the conversation.

Time to create page: 0.243 seconds

About Growth

Innovative tech for eCommerce growth

Contact Info

Head: No. 3, 175/55 Lane, Lac Long Quan St., Nghia Do Ward, Cau Giay District, Hanoi City, Vietnam