Jump to content

Disable a language on a multilanguage site


Recommended Posts

Thanks diogo,

that works partly. the pages are now not available anymore in the hidden language, which is good.

but now there is no way to fill in the contents for the hidden language, which is bad. ;-)

i want to disable the language for all frontend users but i also want to be able to fill in the contents for this language, and when i'm finished, i just want to flip a (one) switch to make the pages in this language public available.

Link to comment
Share on other sites

:D true, sorry about that...

Have you tried removing the url segment for the languages on the home settings? Like this they will all have "/" as base, and the default should prevail in any subpage also.

Link to comment
Share on other sites

Use a prependTemplate file, where you check for the language and if it's the "not public" one just throw an 404 or redirect. Can even be adapted so translators can visit the site.

The language switcher would also have to be adapted to reflect this.

---

You could add a new checkbox field to the languages template that would make a language inactive. Then you just would have to make your language switcher reflect that with a selector and use LostKobrakai's suggestion limited to those languages with the checkbox selected.

Link to comment
Share on other sites

  • 3 weeks later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...