Jump to content

Soma

Moderators
  • Posts

    6,808
  • Joined

  • Last visited

  • Days Won

    159

Everything posted by Soma

  1. next == next() children == children() parent == parent() ... and so forth, PW doesn't care here both are covered.
  2. No need to add another field, you already have PageTItleLanguage on the language template (see my screenshot). If not change the "title" field to language text field. There you can translate the language titles, you don't need to change anything in your code or setup. Ok, but that what you want!? Translated language titles, so in english it will show all language titles in english.
  3. You mean like this? If you set the "title" field to PageTitleLanguage you can already.
  4. No that was just an alternative way. Sorry for the confusion. Do what adrian said here, exclude the image and file fieds. Edit: lol now we have chaos
  5. Well this works: $form = $modules->get("InputfieldForm"); foreach($page->child()->template->fields as $field) { $form->append($field->getInputfield($page->child())); } echo $form->render(); But would also have to clean values.
  6. Yeah I think a german will have real problem with your second method
  7. Ahh I think I missed that you render out a form with those fields. Thats whats missing in my test. So my code throws the error when rendering .. Ok but pitbulls problem is that he seems to have image or file fields which throws the error. It says even what is wrong.
  8. Page field dont need values to function and show the list according to the field settings. The value I mean is which is selected. But then your child page is empty then that could work out.
  9. You define them yourself in the languages you created.
  10. Well change the language of you user and it will take that locale regardless of the front end language set. This is more for Ryan to checkout. I have no clue how to make it behave.
  11. Actually I think with: $page->child()->getInputfields() you get the inputfields from that page with the values for editing. I get errors when using it in outputformatting on... to get the fields you simply do: $page->template->fields;
  12. This works for me: $page->child()->template->fields; What error are you getting adrian?
  13. Its simple: $fields = $page->child()->template->fields;
  14. Can you tell a little more what the field settings are set to? Ok it's a litte special with this field because it also supports "range" setting (min,max). So it has two values actually and uses outputformatting because is an object behind the scenes. To set the value in template code you need to turn it off and use $page->of(false); $page->range->set("min", 3); $page->of(true); or $page->of(false); $page->range->min = 3; $page->of(true);
  15. It is my range slider module right?
  16. I think this method to create a page with a template just to get the fields is not needed and I think if you have file field it will throw that error. I think it's better you get them just using $fields = $templates->get("mytempl")->fields;
  17. I think theres possibly some inconsistent behavior with get and find when using more sophisticated selectors. Just use a find with a limit =1 and a first () chained.
  18. So there is something wrong with that page? Is it unpublished or some permissions set? Any more details would help.
  19. I didn't plan anything yet I just wanted to check how many would consider joining. Looks good so far
  20. There seems to be an issue with this how or where this locale gets set. It doesn't seem to recognize the langauge on front end. It always uses the user language set on user profile.
  21. I don't understand. What you mean with I have? front-end or backend? If you are in backend it will display date in the language your user is set to.
  22. Never ever edit anything in wire folder. You can set that locale in the translation file for the particular language. The file is: wire--modules--languagesupport--languagesupport-module
  23. @kongondo hehe see? Well maybe a link to the board from the frontside.
×
×
  • Create New...