saschapi Posted September 14, 2015 Posted September 14, 2015 Hi guys, I already developed some smaller projects with PW and I like it! Now for the first time I'm trying to build a multilanguage site. I have the default English and German. Everything works smoothly. When I output $page->title I get the current title in English or German, depending which language I'm in right now. However if I go for: $page->name, I always get the English name. Does anybody know why this is happening and how I can get it to return the name of the page in the currently active language? Thanks for any hint or solution! Cheers Sascha
tpr Posted September 14, 2015 Posted September 14, 2015 $page->localName($language); Read on: https://processwire.com/api/multi-language-support/multi-language-urls/ 1
saschapi Posted September 14, 2015 Author Posted September 14, 2015 ARGH! Thanks! I tried it earlier but made a stupid NOOB mistake, so it did not work! Thanks for helping at this hour!
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