Jump to content

Matoseb

Members
  • Posts

    8
  • Joined

  • Last visited

Matoseb's Achievements

Newbie

Newbie (2/6)

2

Reputation

  1. Is there a way to query any page based on their url? This, without even knowing their template name. Like this # generic page selector? page(s: "url=/mypage/") { first { name ...on basicPage { title } ...on projectPage { title text_area } } }
  2. Ok apparently the pages created from a PageReference field have languages non-active by default. I activate the languages with a hook on page added. Now it works
  3. Hello! I'm trying to find pages that contains a specific page in their PageReference field (named page_reference_category). user()->language = 'default'; bd($pages->find("page_reference_category=[id=1269], include=all")); // logs 1 entry user()->language = 'anglais'; bd($pages->find("page_reference_category=[id=1269], include=all")); // logs 0 entry This works well with the default language (french) but not in other languages which return no entries. Note: My whole code is based on the user's chosen language. Thanks for the help!
  4. Good news ! I managed to add some good support for ProField RepeaterMatrix. Github link (experimental, use at your own risk!) Todo Only allow possible fields per matrix types in the schema. Add matrix type as names and not as integers. Easier to read. Support for mutations / inputfields. Repeater Depth/Indents -> Need to add feature to FieldTypeRepeater. However I can't share it as a third party module. You have to insert the php file manually. This is due to the static method field() {} not being called from a third party module. Feature request? ? BTW @dadish I couldn't find a way to add invisible types to the Schema during construction. I tried to use the modifySchema hook, but no luck. Could be useful
  5. Thank you dadish for you infos, that was fast I'll try again soon! Yes, they are based on the Repeaters. It contains a list of pages of the same template, but with repeater_matrix_type differentiating the different possible entries. The repeater_matrix_type field is a FieldtypeInteger
  6. Hello ! Thank you for this very nice module @dadish I'm trying to get the ProField RepeaterMatrix to work based on this fork here by Tulios link. But I'm having a hard time, struggling for some days deciphering the complex GraphQL architecture and logging everything in the console haha I really would like to use it like this screenshot below, with fragments for every repeater matrix types. The main issue I have is I can't find a way to build the list of every possible templates types. The way RepeaterMatrix works is it is differentiating the types based on the repeater_matrix_type. It doesn't seem to work with templates. I tried to use the constructor `new Template()` to create some based on this property but I don't know where to add this line. Also should I create a new RepeaterMatrixPageArrayType based on your PageArrayType? Any chance you would take a look? I know it's a ProField, but if you got some time I would be very grateful
×
×
  • Create New...