ProcessWire Weekly #544

In the 150th issue of ProcessWire Weekly we'll check out brand-new third party module called Inputfield Dependency Helper, share some recent highlights from the support forum, and more. Read on!

Welcome to the latest issue of ProcessWire Weekly. For this week's issue we've got quite a lot of stuff to cover, including some new core updates, a brand-new module called Inputfield Dependency Helper from Robin Sallis, and a whole bunch of interesting forum posts and tutorials from the ProcessWire support forum.

As always we've also got a new site of the week to highlight. Said site is Best Break, a blog and recipe collection that covers topics including breakfast, snacks, and lifestyle themes in general. This site has been in our sites directory for a while already, and is one of the most liked ones in its category, so definitely worth checking out.

Thanks to all of our readers for being here with us again, and as always, any feedback is most welcome – please don't hesitate to drop us a line if there's anything in your mind you'd like to share with us. Enjoy our latest issue and have a great weekend!

Latest core updates and a weekly update from Ryan

This week we've got some new feature additions for the core, available via ProcessWire dev branch at GitHub. These updates, which are covered in more detail in a new weekly post by Ryan at the support forum, are as follows:

  • New $pages->saveFields($page, $fields) and $page->saveFields($fields) methods. Fields can be provided as an array, or as a comma-separated string. Both methods also accept an array of additional options, just like $pages->save().
  • The Options field was updated, greatly improving the developer experience: you can now get, add, and remove items by any valid option property using named methods for operation + property.

For completeness, here's the full list of new Options field methods:

  • Getting values: getByID($id), getByValue($value), and getByTitle($title)
  • Adding values: addByID($id), addByValue($value), and addByTitle($title)
  • Removing values: removeByID($id), removeByValue($value), and removeByTitle($title)

According to Ryan there probably won't be any core updates next week, but we should be back to our regular schedule in a few weeks. In the meantime be sure to check out the weekly update from Ryan for more details about this week's updates. Thanks!

New module: Inputfield Dependency Helper

Inputfield Dependency Helper is a new third party module created by Robin Sallis. This module is essentially a helper for building inputfield dependency rules in the admin: it adds "Insert field name" and "Insert value" dropdown menus right below show-if and required-if fields, making inserting fields and values easier — and less error-prone.

GIF animation by module author Robin Sallis, showcasing the Inputfield Dependency Helper module in action.

If you'd like to give this module a try, you can install it via the modules manager in the admin, or clone or download the module's source code from the Inputfield Dependency Helper GitHub repository. If you have questions, suggestions, or other comments for the author, head down to the Inputfield Dependency Helper support forum thread.

Big thanks to Robin for creating this module and sharing it with us!

Weekly forum highlights, tutorials, and other online resources

For this week we've gathered a list of support forum highlights and other useful and hopefully interesting resources. As always, please let us know if there's anything important we've missed, so that we can include it in one of our future issues.

As a loosely related note, recent events related to WordPress have made some users consider other options — and, as Jonathan Lahijani pointed out in the ProcessWire on the web thread at the support forum, ProcessWire is among those options. Hopefully things get settled without too much damage, especially to open source software in general, but of course we also welcome anyone who sees this as a good time to let ProcessWire prove that there are indeed great alternatives.

If you're interested in ProcessWire news, discussions, and updates, there's always something going on at the support forum. Since we're only able to include a tiny selection of all that in our weekly updates, head down to the forum for more.

Site of the week: Best Break

Our latest site of the week is a blog and recipe website called Best Break. It is not a brand-new release, as Best Break has been featured in our sites directory for quite a while already — in fact it is one of the most liked sites in its category.

Best Break is both a blog and a recipe site with quite respectable amount of content available: there are hundreds of recipes with easy to follow instructions and ingredient lists, and close to a hundred articles as well. Recipes are filterable by various criteria, such as category (breakfast, snacks), difficulty, preparation time, and dietary considerations (vegan, vegetarian, fish, and meat).

The language of the site is German, but Google Translate did a great job at translating the content to English for us, so don't let that get to you if you're looking for recipes or interesting breakfast, snacks, or lifestyle content.

This site was created, and is managed by, Markenpartner GmbH. The front-end is based on the Uikit front-end framework, with various custom additions, such as a very handy ingredient amount calculator. There are no familiar ProcessWire modules visible on the site, so not much else we can say about the technical implementation.

Big thanks to Markenpartner GmbH for sharing this project with us, fantastic work!

Stay tuned for our next issue

That's it for the 544th issue of ProcessWire Weekly. We'll be back with more news, updates, and content Saturday, 19th of October. As always, ProcessWire newsletter subscribers will get our updates a few days later.

Thanks for staying with us, once again. Hope you've had a great and productive week, and don't forget to check out the ProcessWire forums for more interesting topics. Until next week, happy hacking with ProcessWire!

Post a comment