synapse Posted March 30, 2018 Share Posted March 30, 2018 Hello, I'm trying to disable a page for a specific language by unchecking the 'Active?' checkbox but it is still visible by visiting the link and shows up when using the $pages->find() as well. What am I missing? I followed this guide (https://processwire.com/api/multi-language-support/multi-language-urls/) but it does not seem to be working. I'm using the latest version 3.0.96 Edit: after clearing the Page Render cache it stopped showing up in the $pages->find() but the url is still visible Link to comment Share on other sites More sharing options...
Zeka Posted March 30, 2018 Share Posted March 30, 2018 It is visible only for superuser, for the guest user you should get 404 error by visiting links of diactivated languages 3 1 Link to comment Share on other sites More sharing options...
synapse Posted March 30, 2018 Author Share Posted March 30, 2018 Thanks @Zeka. After I logged out the page was not visible any more ?. 1 Link to comment Share on other sites More sharing options...
Zeka Posted March 30, 2018 Share Posted March 30, 2018 @synapse To not log out you can test such things in the incognito mode 2 Link to comment Share on other sites More sharing options...
neosin Posted March 30, 2018 Share Posted March 30, 2018 there is also a module maybe it can help Link to comment Share on other sites More sharing options...
PWaddict Posted April 9, 2018 Share Posted April 9, 2018 Having a Page Reference field that displays a specific page content on the entire site if I go and uncheck the Active attribute on the additional language I'm still getting the content of the deactivated language. Link to comment Share on other sites More sharing options...
PWaddict Posted April 9, 2018 Share Posted April 9, 2018 2 hours ago, PWaddict said: Having a Page Reference field that displays a specific page content on the entire site if I go and uncheck the Active attribute on the additional language I'm still getting the content of the deactivated language. Here is how I fixed that: $settings = $pages->get("template=settings"); $language = $user->language; if($settings->featured_post && $settings->featured_post->viewable($language)) { echo "<a href='{$settings->featured_post->url}'>{$settings->featured_post->title}</a>"; } 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