Jump to content
bluellyr

InputfieldFieldset inside a InputfieldFieldset and how find pages

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

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...