Smirftsch Posted August 27, 2019 Share Posted August 27, 2019 Hello all! I am building a page for one of my clients and he wants to restrict content for a specific domain name. The .com has to show all pages and children, but the .de domain is supposed to show only a few pages/children of the .com domain. It is a multi language page and the ability to switch languages should be kept as well. Are there any recommendations or even modules how to do such a thing? I was digging the forums but haven't found anything so far. Perhaps I am just missing the right keywords only ? Link to comment Share on other sites More sharing options...
bernhard Posted August 27, 2019 Share Posted August 27, 2019 Just add a checkbox to the pages that should be shown (or should not be shown, whatever makes more sense) and exclude/include those pages in all your selectors $selector = [ 'template' => 'blogpost', // and so on ]; if($config->httpHost == 'yourdomain.de') { $selector['show_de'] = true; } $pages->find($selector); 2 Link to comment Share on other sites More sharing options...
Smirftsch Posted August 29, 2019 Author Share Posted August 29, 2019 Thank you very much ? - it looks like I would have complicated things, glad I asked. Going to try that. 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