Jump to content

Multilingual website and urls


Recommended Posts

I 've got 2 languages let's say default and german and I am using multilingual fields:

  1. Is there a way to disable fallback to default language url if german is not active for a page ?
  2. Is there a way to have active only the german language for some pages  ?
  3. example.com/mypage redirects to example.com/default/mypage, can I disable that ?
Edited by ounos
Link to comment
Share on other sites

welcome ounos :)

1. I think you need to clarify a little more, where should it fallback to default if german is not active?

     Maybe you mean "Inherit value from default language" under Field Settings -> Details?

2. Not directly, but you could have your own redirection, for example create a custom field e.g. "only_de" than in your template or prepended template file _init.php

if($page->only_de) {
    $de = $languages->get('de');

3. Edit you home page (page with page id 1) and under settings you remove default name for default language, so you leave the url field empty

   and set "de" for your german url for example

Just ask if something isn't clear or I got you wrong ;)


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...