Jump to content

How to disable some pages in second language

Recommended Posts

I'm developing a new website and I added a Blog module.

My website is available in 2 languages (English and French) but my blog posts will only be available in French.

How can I delete the pages I don't want in English ?

Share this post

Link to post
Share on other sites

It needs a bit of customization.

First of all, it's a no-no regarding UX to have 2 languages and not have access to the same content (obviously translated).

Let's get to the point though.

No matter what your module is you can get in the hookDisplayHeader() and check if the current page is blog central, blog category, blog post etc and the language is English Tools::redirect(). 

Share this post

Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More