Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Different domains under Publisher

Status Resolved
Add-on / Version Publisher 1.0.14
Severity Trivial
EE Version 2.7.2

Rob Post

Nov 05, 2013

Would this be possible with Publisher now or in the future?

Having a situation were a client has a generic domain name to be used for the multi language part of the site.

general.domain.com/nl/
general.domain.com/en/
general.domain.com/fr/
etc.

However for the /de/ situation they like to use a different domain german.domain.de instead of the general.domain.com/de/

Would something like that be possible?

#1

BoldMinded (Brian)

I believe so, but you might have to use one of Publisher’s hooks if you want the language switcher to include the de domain in the list of available languages on the other 3 sites. Or, you could hard-code the language switcher, but you might lose the ability when switching languages to redirect to the same page, instead it might have to redirect to the home page.

#2

Brian Litzinger

Rob, sorry for the crazy long delay on this, but wouldn’t this work if you add it to your main EE config.php file?

if (isset($_SERVER['SERVER_NAME'])) {
    switch($_SERVER['SERVER_NAME']) {
        case 'sitename.de':
            $config['publisher_lang_override'] = 'de';
        break;
        case 'sitename.fr':
            $config['publisher_lang_override'] = 'fr';
        break;
        case 'sitename.co.uk':
            $config['publisher_lang_override'] = 'uk';
        break;
    }
}

Login to reply