ProcessWire Weekly #434

In the 434th issue of ProcessWire Weekly we're going to cover the latest core updates, weekly ProcessWire online highlights, and more. Read on!

Welcome to the latest issue of ProcessWire Weekly. In this week's issue we're going to once again cover the latest core development news, which include a major refactoring of the core Page class, as well as some all-new selector-related features.

In other news we've got a new list of ProcessWire highlights, including an opinionated starter kit for anyone interested in integrating the popular utility-first CSS framework Tailwind into their site building workflow, interesting new video tutorials by Henning Heyne and Bernhard Baumrock, and more.

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: major refactoring of the Page class and new selector options

Introduced in a new weekly update by Ryan, the core updates this week include major updates to the Page class, resulting in the addition of some all-new selector features, as well as a few upgrades and improvements to existing ones.

Here's a summary of what's new this week:

  • The dot syntax for Page "get" method ($page->get('field.subfield.title')) now works at all times, no longer requiring output formatting to be turned off.
  • For multi-value fields, the dot syntax provides direct access to the first or the last item with keywords "first "and "last", e.g. $page->get('categories.first').
  • As a brand new feature, selectors now support bracket syntax for getting the field value in a suitable array format: $page->get('field_name[]'). To get the value on a position from a multi-value field one can provide a numeric value within the brackets: $page->get('field_name[2]') will return the third item (or null), etc.
  • Finally, this all-new syntax also supports selector strings within the brackets: $page->get('field_name[title%=processwire]'). It's worth mentioning that this operation is handled in the database, which is great for performance.

The core version wasn't bumped up yet because of a major refactoring of the Page core class. Said class was getting a bit too big for its own good, so parts of it were split into other classes, among other things. Waiting a while before bumping the core version gives us a bit of extra time to make sure that everything works as intended.

That's all for our core updates section this week. For more in-depth examples of using the new syntax options, and combining them in various ways, be sure to check out the weekly update post from Ryan. Thanks!

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.

  • Our first highlight for the week is from gebeer: a starter kit featuring ProcessWire, Tailwind, Webpack, and PostCSS — "an opinionated starter for people who like to use Tailwind CSS with ProcessWire". This kit comes with a new helper module for handling cache busting of built assets, WebpackAssets.
  • Talking about new modules, another one that we've just stumbled upon is called LeadToHubspot. This is a simple module that lets you push data into the HubSpot marketing and customer relations management platform.
  • One more module update is the addition of the new version of RockMigrations to the modules directory, among other things making this useful tool available via the built-in modules manager in admin.
  • Moving on to tutorials, there's a brand new video tutorial available by Berhard Baumrock about hooks and custom Page classes. If you'd like to stay up to date with Bernhards videos, be sure to also visit the ProcessWire rocks forum thread!
  • Last but not least, there are a couple of new ProcessWire Tips videos available at the YouTube channel of Henning Heyne: 5 Modules you should know about, and Accelerating Areas of the Website with MarkupCache.

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:

Our latest site of the week is, a free service that helps people understand the needs and find the best care for elderly — be it nursing homes, at-home services, or daycare.

The website was created by SuperTINY agency and introduced by Helder Cervantes in a recent showcase forum post. The site features details about options for elderly care, a blog section, and a quiz that provides users with a better understanding of the level of dependency.

Velhinhos is a gorgeous, modern website with plenty of quality photography, and a lot of content. This site has a very light look and feel to it, but when it comes to the layout and typography, there's plenty of variety and complementary animations. Entire brand, including visuals and tone, of the site was also created by SuperTINY agency.

As for behind the scenes details, the front-end of this site is based on the Tailwind CSS framework and web components powered by the Stencil JavaScript library. The site also syncs data into Pipedrive CRM.

Big thanks to Helder Cervantes of SuperTINY agency for sharing this project with us, and our congratulations to the client behind this project for their new, ProcessWire powered website!

Stay tuned for our next issue

That's it for the 434th issue of ProcessWire Weekly. We'll be back with more news, updates, and content Saturday, 10th of September. 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