alizeeee Posted March 27, 2019 Share Posted March 27, 2019 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 ? Link to comment Share on other sites More sharing options...
Kogkalidis Posted March 27, 2019 Share Posted March 27, 2019 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(). Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now