Two home pages with multi-language add-on
PermalinkHome
- language 1
-- Home1
-- About Us1
- language 2
-- Home2
-- About us2
In the multilingual setup, I set language 1 as default language, and redirect home page to default language (i.e., language 1, which bypasses top Home page). In the auto-nave setting, I set display page at second level (which hides top Home page from the menu). This all works perfectly except for this problem: When I go to the mysite.com or click on the site logo, it leads me to language 1, but what I really want to go to is Home 1. I don't want to have two home pages. I tried changing the page path/location in full sitemap and hard coding header.php but none of them didn't work.
Any suggestions?
In your template file you can add a stack like this:
$s = Stack::getByName('Logo - EN');
$s->display();
Of could you need to call the right stack, but that could be done by getting the active language. I don't know the multilingual add-on that well, but I suppose there is a helper you'd call. Or try constants like 'LOCALE', 'ACTIVE_LOCALE', 'SITE_LOCALE'.
Let me know what you think.