ProcessWire Weekly #550

In the 550th issue of ProcessWire Weekly we're going to check out the latest core updates, introduce a new third party module called PagefileMetadata, and more. Read on!

Welcome to the latest issue of ProcessWire Weekly. In this week's issue we're going to check out what's been happening in the ProcessWire dev branch at GitHub, and share the latest weekly update from Ryan.

We've also got a new third party module to introduce, called PagefileMetadata. And, as always, we're going to highlight a brand-new site of the week, created by Olaf Gleba for the German gourmet tasting service provider Gourmets for Nature. Keep on reading for more details.

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!

Weekly core updates

As Ryan mentions in his latest weekly update at the ProcessWire support forum, this week the focus of core development has been strictly on resolving issues reported via the processwire-issues repository at GitHub. As we've been saying for a while now, the release date for a new stable version is going to be pretty soon, and that means fewer feature additions and more bug fixes and minor improvements for the time being.

Taking a quick look at the commit log for the dev branch for the past week, we can see that there are a total of 8 commits focused on fixing an issue, and one more that fixes some of the remaining PHP 8.x deprecation notices:

That's all for our core update section this week. For more details, be sure to check out the weekly update from Ryan at the ProcessWire support forum at processwire.com. Thanks!

New module: PagefileMetadata

PagefileMetadata is a new third party ProcessWire module by Neue Rituale. This module allows one to add metadata information to ProcessWire file fields (using FieldtypeFile). Under the hood the module makes use of the getID3 library by James Heinrich, and raw metadata is stored in the "filedata" property of the field.

One of the motivations for developing this module was the need to know the aspect ratio of self-hosted mp4 videos in order to avoid layout shifts during rendering. However, this use case is very specific and the idea of this module is to make the huge amount of metadata provided by getID3 accessible via simple apis.

— Sites directory entry for the PagefileMetadata module

Thanks to the feature set of getID3, PagefileMetadata can handle various file formats, including MP3, MP4, AVI, FLAC, and OGG. You can access the metadata of a Pagefile via the $file->metadata() method, or get certain predefined properties by providing the name of the property as a method argument: "width", "height", "aspect", or "type".

The module can display file metadata in the admin backend, and if you want to customize its behaviour, there are a couple of hookable methods for that:

  • PagefileMetadata::___getMetadata() for adding additional properties for the $file->metadata($property) function.
  • PagefileMetadata::___renderItemInfo() for defining which metadata values should be rendered in admin.

If you'd like to give this module a try, you can install it via the built-in modules manager in the admin, or clone or download the module's source code via the PagefileMetadata GitHub repository. Check out the README for additional instructions, and if you have questions, head down to the PagefileMetadata support forum thread.

Big thanks to Neue Rituale for sharing another useful module with the ProcessWire community, keep up the great work!

Site of the week: Gourmets for Nature

Our latest site of the week belongs to Gourmets for Nature, a German company offering online wine and cheese tastings webinars for individuals, or as a team event. The company, which is managed by wine consultant Annegret Fründ and sommelier Bettina Duwe, has various predesigned tasting packages available, each consisting of an online event, along with a tasting box for the participants.

The website of Gourmets for Nature was created by Olaf Gleba. It is a beautiful website with some tasteful (pun not intended) animated effects here and there. Content wise it is very much the real deal: introductory pages for the company and their services, FAQ section, contacts section, and even a blog with plenty of posts. All in all this site has just about everything you'd expect from a company website, and then some.

As for behind the scenes details, the front-end of this site appears to be custom-built; there's no front-end framework that we'd be familiar with. There are a some JavaScript dependencies, though, including jQuery. As for third party ProcessWire modules, there are a couple of that we could spot: the cookie consent solution PrivacyWire, and the commercial form management solution FormBuilder.

Big thanks to Olaf Gleba for sharing this project with us, and our congratulations to the owners of the site, Gourmets for Nature, for their brilliant, ProcessWire powered website!

Stay tuned for our next issue

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