ProcessWire Weekly #401

In the 401st issue of ProcessWire Weekly we'll cover the latest core updates, check out a brand new module called Lister Native Date Format, and more. Read on!

Welcome to the latest issue of ProcessWire Weekly. In this issue we'll take a closer look at the latest core (dev branch) updates, which mainly relate to the findRaw method of the Pages API, as well as a new third party module called Lister Naive Date Format.

Our latest site of the week belongs to a non-profit organization based in the Hampton, UK: Hampton Fund. Their new website was developed by ID Studio Web Agency, and among other things features a gorgeous design, and plenty of quality content.

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

In the weekly update for January 14th, published at the support forum, Ryan covers the latest core updates to hit the dev branch. Most of said updates are related to the $pages->findRaw() method, which was introduced in ProcessWire 3.0.172:

  • Support for selecting parent properties/fields in the return value.

  • Support for selecting freeform page "meta" data in the return value.

  • Support for selecting "references" — pages that reference the found page(s) via Page reference fields — in the return value. (These can optionally be indexed by field name.)

  • Support for selecting title and/or value from options fields (FieldtypeOptions).

  • Support for a new "flat" option that flattens multidimensional arrays in the returned value array.

In addition to those mentioned above, updates were also made for the float inputfield and $sanitizer->float() method (adding support for the scientific E notation), to the Process Template core module, and to the WireHttp core class.

That's all for our core updates section this week. For more details, as well as some easy to grasp examples of the findRaw updates, be sure to also check out the weekly update thread at the support forum. Thanks!

New module: Lister Native Date Format

Lister Native Date Format is a brand new third party module developed by Robin Sallis. In a nutshell this module integrates with core Lister or the commercial Lister Pro, and allows the date format for the "created", "modified", and "published" columns to be defined on the fly.

By default aforementioned fields always display a relative time string, such as "2 days ago" or "3 months ago". With this module enabled, you can easily display them with a different format on a case by case basis. Available formats can be defined via module config settings, and the choices you make will be remembered on a per-Lister basis.

GIF animation by Robin Sallis, showcasing a Lister field with added functionality from the Lister Native Date Format module.

Big thanks to Robin for developing this very useful module and sharing it with us — fantastic work as always!

If you'd like to give this module a try, you can install it via the built-in modules installer in the admin, or clone or download the module files from the Lister Native Date Format GitHub repository. If you run into any issues, feel free to submit your question via the Lister Native Date Format support forum thread.

Site of the week: Hampton Fund

Our latest site of the week is that of Hampton Fund. Founded in 1811, they are a Hampton, UK based non-profit organization supporting low income individuals and families with grants for gas and electricity. Additionally, they offer grants for voluntary sector organisations to provide services and activities for people in need.

The Hampton Fund website was built by ID Studio Web Agency, the UK based agency whose work we've featured a number of times in our site of the week section. This site features a modern design with plenty of visual appeal and some well placed animated effects, loads of quality content — including a lengthy section about the background of the Hampton Fund — and various downloadable reports.

As for behind the scenes details, the front-end of this site is based on the Bootstrap front-end framework, and among other well polished features includes a Google Maps embed that has been customized to fit the look and style of the site splendidly. As for third party modules and such, there are none visible here, so not much we can tell about that aspect.

Big thanks to the folks at ID Studio Web Agency for sharing this project with us, and our congratulations and best wishes in their work for the Hampton Fund — keep up the great work!

Stay tuned for our next issue

That's all for the 401st issue of ProcessWire Weekly. We'll be back with more news, updates, and content Saturday, 22nd of January. 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