Hi all,
I am defining the externalizer configuration for a multilingual site.
My problem comes up when I try to externalize a path to different domains. How do I externalize an URL to www.mycompany.com/page1.html or www.mycompany.es/page1.html???
I have already created an externalizer tag to externalize URLs, so, I have thought to create a 'multisite' special domain that is specially treated in my tag. Something like:
If ('multisite'.equals(domain)){
path = currentPage.getPath;
if (path.contains(SPANISH_MARKET_IDENTIFIER)) {
return externalizer.externalLink(resourceResolver, 'spain', scheme, "/page1") + ".html";
} elseif (path.contains(FRENCH_MARKET_IDENTIFIER)) {
return externalizer.externalLink(resourceResolver, 'france', scheme, "/page1") + ".html";
}
}
And then my externalizer config file will have an entry on externalizer.domains for each country. It sounds like a very hand made solution. Any other solution/idea???
Thanks in advance,
Salva.