Jump to content

Juergen

Members
  • Posts

    1,410
  • Joined

  • Last visited

  • Days Won

    18

Everything posted by Juergen

  1. @ Sakkoulas But if I do that I am not able to call the variable $wire like "$eventdata=$wire->pages->get('/events/')->children();" like you post. Notice: Undefined variable: wire in /home/.sites/24........ I have tried it but it only works if json-events.php is in the template folder. But if I put it into the template folder, I am not able to call this file directly - I will be redirected. I took a look at your site and it it possible to call your json file via the browser. What could be the cause for this problem?!? Best regards Jürgen
  2. Hello Soma, thank you for this explanation. I have always used Joomla and there are a lot of other approaches in creating multilingual site so it was difficult for me to figure out the procedure here in Processwire. Yes, I use the module and I have changed the homepage names to de and en and this makes much more sense. Thank you for your hint. Best regards Jürgen
  3. I found the solution This is the example for the fullname. You have to decode it to utf-8: dont use this: Name: $form[fullname] Use this instead: Name:utf8_decode($form[fullname]); Make this for all fields in the email and it works!!
  4. Hello Roope, I found out what is the problem, but I could not understand it. Alias is the path name in the settings (home/, startseite/). If I name the English version "home" it doesnt work, but if I name it another name than home it will work. I seems that the word home is protected and could not be used for this purpose. Very strange behaviour. I call it homepage instead of home and now it works quiete well. Thanks for your effort! Best regards Jürgen
  5. I have tried this contact form from Starter and it works quite well, but I have problems with the German letters like ü,ä,ö and so on. They will be sent like üü. The charset is utf-8 but it doesnt work in the emails. Has anyone a sugguestion to solve this problem??
  6. Hello @ all, I am new to Processwire and I am struggling for a while with this problem. I have setted up a multilingual site with a language switcher. The switcher works fine except on the homepage. It seems the aliases for the different languages (German: startseite, English: home) will not be taken on the homepage. If I switch to the other language on the homepage it doesnt work - it wil be always in German. The aliases will not be added to the homepage url so it is always the root url and this maybe causes the problem. I found this in the explanation: Please note that the URL for the default-language homepage is always your site's root URL, regardless of what you specify in the homepage name. This is intentional, as it's not desirable to have a homepage that produces a 404 or immediately performs a redirect to another URL. If populated, your homepage name for the default language is still applicable for the rest of the pages in your site. But how can I switch on the homepage to another language??? Do I need the language prepend in the urls (de, en,...)? I have searched in the forum but I couldnt find a solution to this problem. I use the latest version of Processwire. Can anyone point me into the right direction? Best regards Jürgen
×
×
  • Create New...