Online Joomla Training  
+ Reply to Thread
Results 1 to 6 of 6

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

  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)

  3. #2
    Join Date
    May 2011
    Posts
    75
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Default

    Hi,

    Thanks for your useful information!
    We will consider your sharing and update in the next template version if possible.

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

    Default

    Quote Originally Posted by Rose View Post
    We will consider your sharing and update in the next template version if possible.
    Yes, sure , feel free to, it's so easy. And please check all your templates, they all might need this!

  5. #4
    Join Date
    May 2011
    Posts
    75
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Default

    Hi,

    Thanks you, we have created task to check and implement it

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

    Default

    I'd be very happy if that helps you! ..I'm not stating my code is 100% correct, but it just works (so far tested only locally)!
    My website details :
    - Joomla 2.5.4,
    - native multilanguage management as per Joomla Docs.
    - home page for English language looks like 'www.mydomain.com/en/'

  7. #6
    Join Date
    May 2011
    Posts
    75
    Thanks
    1
    Thanked 2 Times in 2 Posts

    Default

    Hi,

    Your suggestion is a great deal
    We have implemented the fix and will release it in the next template version.
    Thank you.

+ Reply to Thread

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