Jump to content

Neue Rituale

  • Posts

  • Joined

  • Last visited

  • Days Won


Neue Rituale last won the day on May 3

Neue Rituale had the most liked content!

Contact Methods

  • Website URL

Profile Information

  • Location

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Neue Rituale's Achievements


Newbie (2/6)



  1. Hi Guys, i want to get a hooked page property into my graphql schema. Does anybody know how i can configure/implement this? /* the examble from https://processwire.com/docs/modules/hooks/#how-can-i-add-a-new-property-via-a-hook */ wire()->addHookProperty('Page::intro', function($event) { $page = $event->object; $intro = substr(strip_tags($page->body), 0, 255); $lastPeriodPos = strrpos($intro, '.'); if($lastPeriod !== false) $intro = substr($intro, 0, $lastPeriodPos); $event->return = $intro; }); I am playing around with the getQueryFields-Hook but I don't know what to do next: wire()->addHookAfter('ProcessGraphQL::getQueryFields', function ($event) { $types = $event->return; foreach($types as $type) { if($type['name'] === 'mytype') { /** @var ObjectType $pageType */ $pageType = $type['type']->getField('list')->getType()->getOfType(); $fields = $pageType->getFields(); // ???? // and here i will add some fields } } $event->return = $types; });
  2. Retrieve, collect and store geolocation data from external geocoding services. Under the hood, the module uses the great PHP Library geocoder-php by William Durand and Tobias Nyholm and adds some processwire magic. Download: Github: https://github.com/neuerituale/FieldtypeGeocoder Module directory: https://processwire.com/modules/fieldtype-geocoder/
  3. We add support for ProcessGraphQL with the additional module GraphQLFieldtypeOembed.
  4. https://github.com/neuerituale/FieldtypeOembed or in the modules directory: https://processwire.com/modules/fieldtype-oembed/
  • Create New...