-
Posts
6,808 -
Joined
-
Last visited
-
Days Won
159
Everything posted by Soma
-
next == next() children == children() parent == parent() ... and so forth, PW doesn't care here both are covered.
-
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.
-
-
Filter results of selector using select/checkbox?
Soma replied to antknight's topic in General Support
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 -
Filter results of selector using select/checkbox?
Soma replied to antknight's topic in General Support
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. -
Yeah I think a german will have real problem with your second method
-
Filter results of selector using select/checkbox?
Soma replied to antknight's topic in General Support
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. -
Filter results of selector using select/checkbox?
Soma replied to antknight's topic in General Support
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. -
You define them yourself in the languages you created.
-
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.
-
Filter results of selector using select/checkbox?
Soma replied to antknight's topic in General Support
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; -
Filter results of selector using select/checkbox?
Soma replied to antknight's topic in General Support
This works for me: $page->child()->template->fields; What error are you getting adrian? -
Filter results of selector using select/checkbox?
Soma replied to antknight's topic in General Support
Its simple: $fields = $page->child()->template->fields; -
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);
-
It is my range slider module right?
-
Filter results of selector using select/checkbox?
Soma replied to antknight's topic in General Support
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; -
ProcessWire conference, Switzerland (central europe)
Soma replied to Soma's topic in News & Announcements
Welcome bbeer! -
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.
-
So there is something wrong with that page? Is it unpublished or some permissions set? Any more details would help.
-
ProcessWire conference, Switzerland (central europe)
Soma replied to Soma's topic in News & Announcements
I didn't plan anything yet I just wanted to check how many would consider joining. Looks good so far -
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.
-
ProcessWire conference, Switzerland (central europe)
Soma replied to Soma's topic in News & Announcements
Tomorrow. -
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.
-
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
-
Bootstrapping Processwire to my Websocket server problem
Soma replied to Harmster's topic in API & Templates
@kongondo hehe see? Well maybe a link to the board from the frontside.