alias pages
Permalink Browser Info Environment
I have an English / French site with a blog that is in only in English. I made an alias of the english blog page into the french section of the sitemap and mapped them in in Internationalization. But language switching doe not work properly. Is there a way to configure Alias pages with Internationalization?
Thanks
Thanks
Type: | Discussion |
---|---|
Status: | In Progress |
I'm not sure what your issue is, what is the desired behavior and what is the current behavior?
I ended up to the same issue. I have single pages which I aliased to different languages but the relate page doesn't actually work with alias pages because it saves the original page id not the alias page id in relation thus making the relation to it self and that is why it doesn't work.
Solution is to check if page is alias when relateing page.
This needs to be changed in files:
packages/multilingual/controllers/dashboard/multilingual/page_report.php - method assign_page
packages/multilingual/models/section.php - method relatePage
Solution is to check if page is alias when relateing page.
$newPageId= $newPage->isAlias() ? $newPage->cPointerOriginalID : $newPage->getCollectionID();
This needs to be changed in files:
packages/multilingual/controllers/dashboard/multilingual/page_report.php - method assign_page
packages/multilingual/models/section.php - method relatePage