Online Joomla Training  
Results 1 to 6 of 6

Thread: SOLUTION: how to correctly detect home page in a multilingual site.

Threaded View

  1. #1
    Join Date
    May 2012
    Posts
    3
    Thanks
    0
    Thanked 1 Time in 1 Post

    Tips 02 SOLUTION: how to correctly detect home page in a multilingual site.

    Hi! The option 'Show Mainbody on Frontpage' in JSN Dome (even the latest build) does NOT work in a case with a multilingual site. Really this can affect ALL JoomlaShine templates, I haven't checked
    I wanna share my experience, how this can be corrected, using Joomla docs.

    I changed in \includes\jsn_setup.php the lines at ~ line#133
    Code:
    		$not_homepage = ($menu != $menus->getDefault());
    to

    Code:
    $lang = JFactory::getLanguage();
    		$not_homepage = ($menu != $menus->getDefault( $lang->getTag() ));
    Now my bilingual site respects the mentioned option.

  2. The Following User Says Thank You to ichepurnoy For This Useful Post:

    Rose (05-31-2012)

Similar Threads

  1. Problem with Home Page
    By YaminZakaria in forum General Discussions
    Replies: 1
    Last Post: 07-28-2010, 11:36 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts