Hi there,
Can't find a solution for this problem (although it sounds quite easy): If a page exists but is not active in the current user's language there should be an alert with "content not available for your selected region" instead of displaying the 404-page.
I tried this:
// if page is not active in current user language show alert, instead of 404 page
if($page->name != 'http404' && !$page->viewable($user->language)) {
$page = $pages->get('id=17104'); // this is the page containing the content-not-available-in-your-region-message
}
It works when logged in as superuser but when loged out, visitors will always be redirected to the 404-page.
Can anyone help, please?