Jump to content

InputfieldFieldset inside a InputfieldFieldset and how find pages


bluellyr
 Share

Recommended Posts

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

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

  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...