Marcel Koch Posted February 28, 2013 Share Posted February 28, 2013 Hey there, is there a possibility to hide / display pages in the page tree depending on a language? Example: I want to hide the "About" page in the spanish version since I just translated the home page yet. Thanks in advance Marcel Link to comment Share on other sites More sharing options...
Wanze Posted February 28, 2013 Share Posted February 28, 2013 Hi Marcel, I assume you mean a navigation somewhere in the frontend? If you have the newest Pw dev version, you could add this to your selector: $pages->find("title!=''"); This should exclude pages that have no title set in the current language. Another possibility is to create additional checkboxes to indicate if a page is really published in language xy Link to comment Share on other sites More sharing options...
Marcel Koch Posted February 28, 2013 Author Share Posted February 28, 2013 Hey Wanze, are you sayin' that this works in the latest DEV version only? What about the current stable one? Where is the difference? Thanks for your help Marcel Link to comment Share on other sites More sharing options...
Wanze Posted February 28, 2013 Share Posted February 28, 2013 Check out this thread: http://processwire.com/talk/topic/2824-dont-substitute-default-language/ There was a little bug but it should be fixed now by ryan - haven't had time to test it yet. The latest dev will become ProcessWire 2.3 very soon and is already "stable". I'm using it since months and had no issue, so my advice is: Update to the latest dev You can see some of the new features of 2.3 here: http://processwire.com/about/news/feb-2013/ Cheers Link to comment Share on other sites More sharing options...
Marcel Koch Posted March 5, 2013 Author Share Posted March 5, 2013 Since I now use the module for localized URLs which comes with an idea of an additional field, this issue is solved for - at least for me. https://github.com/mcmorry/PW-language-localized-URL Could the admin please modify the topic title? I made a mistake there. Thanks Marcel 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