bluellyr Posted March 6, 2019 Share Posted March 6, 2019 Hi, It is possible to create a field InputfieldFieldset (fieldsetPage1) that have a FieldtypeFieldsetPage (fieldsetPage2) and the field2 has a FieldtypeFieldsetPage (fieldsetPage3) that has a text field (text_field) a added the fieldsetPage1 to a template (template1) like this and use $p = $pages->find("template=template1, fieldsetPage1.fieldsetPage2.fieldsetPage3.text_field=test"); to find pages? Thank you Link to comment Share on other sites More sharing options...
bluellyr Posted March 6, 2019 Author Share Posted March 6, 2019 To test this possibility I have created a field InputfieldFieldset (fieldsetPage1) that have a FieldtypeFieldsetPage (fieldsetPage2) and the field2 has a FieldtypeFieldsetPage (fieldsetPage3) that has a text field (text_field) a added the fieldsetPage1 to a template (template1) like this: - template1 > fieldsetPage1 > fieldsetPage2 > fieldsetPage3 > text_field When I page a page using this template, $p = $pages->find("template=template1")->first(); , I can get the "text_field" value using the object notation link this: - $text_field_value = $p->fieldsetPage1->fieldsetPage2->fieldsetPage3->text_field; But when I try to find a page using: - $p = $pages->find("template=template1, fieldsetPage1.fieldsetPage2.fieldsetPage3.text_field=test"); I get an error: - Exception: Operator ~= not supported for fieldsetPage2.data (in /www/domain.com/wire/modules/Fieldtype/FieldtypeRepeater/FieldtypeRepeater.module line 1384) I am using ProcessWire 3.0.126, Do anyone have done something like this or explain what is wrong? Link to comment Share on other sites More sharing options...
Robin S Posted March 7, 2019 Share Posted March 7, 2019 13 hours ago, bluellyr said: I get an error: - Exception: Operator ~= not supported for fieldsetPage2.data (in /www/domain.com/wire/modules/Fieldtype/FieldtypeRepeater/FieldtypeRepeater.module line 1384) I can reproduce. Seems like a bug. Issue here: https://github.com/processwire/processwire-issues/issues/826 2 Link to comment Share on other sites More sharing options...
bluellyr Posted March 15, 2019 Author Share Posted March 15, 2019 On 3/7/2019 at 1:44 AM, Robin S said: I can reproduce. Seems like a bug. Issue here: https://github.com/processwire/processwire-issues/issues/826 Hi, I am going to report the bug. Many thanks Link to comment Share on other sites More sharing options...
bluellyr Posted March 15, 2019 Author Share Posted March 15, 2019 Sorry, you already issued, thank you. 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