ProcessWire Weekly #498

The 498th issue of ProcessWire Weekly brings in all the latest news from the ProcessWire community. Modules, sites, and more. Read on!

Welcome to the latest issue of ProcessWire Weekly. In this week's issue we'll check out a couple of newly released modules — one of which is the latest addition to the ProFields modules bundle, called Date Range, while the other one is a new text field with a useful extra feature, called FieldtypeTextWithLength.

As always we'll also highlight a new site of the week. This time that would be the latest iteration of the website of the non-profit association and collective Velvetyne. They are dedicated to researching and disseminating typography and typeface creation, and as such, typography also plays a major role in their website design. More about this very interesting project in just a bit.

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!

New ProFields Date Range Fieldtype and Inputfield

This week there are no new core updates for us to cover, but there is a new blog post from Ryan. Said post, published in the blog, is a detailed users guide for the Date Range Fieldtype and Inputfield, which is now available as a part of the commercial ProFields module bundle.

Date Range Fieldtype and Inputfield in a nutshell

We covered some of the basics about this module last week, but just to reiterate: the Date Range fieldtype/inputfield is a module for storing and querying two dates, date from and date to, with a purpose built GUI and plenty of customization.

GUI of the new Date Range fieldtype/inputfield module. Screenshot by Ryan Cramer.

What's covered in the blog post?

Topics covered in the blog post include...

  • What this fieldtype/inputfield is all about, how and why it was built, where the GUI came from, and when/where you might want to use this new fieldtype/inputfield.
  • How to configure the module, including optional single day selection mode, where you get to use the GUI provided by this module, yet only select one day instead of a range.
  • Using the API provided by the Date Range fieldtype, including some nifty helpers that e.g. allow you to check if a specific date range is in the future or in the past, how many nights or days a range covers, etc.
  • Querying data stored in a field via selectors, including querying by partial dates and partial ranges, finding current/past/future ranges, etc.
  • And, finally, customizing the behaviour via hooks.

All in all this is quite a detailed introduction to the module, so it should both give any potential users a good idea how this module might be useful for them, and serve as a users guide for those who already have access to it via the ProFields module bundle.

Be sure to check out the "using date range fields in ProcessWire" blog post for more details. Thanks!

New module: FieldtypeTextWithLength

FieldtypeTextWithLength is a new third party ProcessWire module created by BitPoet. This module is fully compatible with the native text fieldtype (FieldtypeText), and has largely the same feature set — with one additional feature: you can find results based on the length (in characters) of the contained value.

// find skyscrapers with street name longer than 20 characters
$long_names = $pages->find('template=skyscraper, street_name.length>20`);

There is a pending feature request for adding a similar feature to the core text fieldtype, but if this is something you might benefit from now, be sure to check this module out. Since this module and the core fieldtype are indeed compatible, you can easily switch back and forth between them at any point in the future.

If you'd like to give this module a try, you can clone or download the module's source code from the FieldtypeTextWithLength GitHub repository. In case you have questions, head down to the FieldtypeTextWithLength support forum thread.

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

Site of the week: Velvetyne

Our latest site of the week belongs to a non-profit called Velvetyne. They are a collective dedicated to researching and disseminating typography and typeface creation. Among other things they host workshops and release unique, creative fonts under open source license.

Current Velvetyne website (v3) was designed and developed by Raphaël Bastide, and for anyone interested in how it came to be, as well as how it differs from previous versions, there's a detailed write-up from the creator of the site. The latest iteration of this site — which has been powered by ProcessWire since 2015 — is a truly unique, highly text and typography driven site with a great deal of content to browse through; and, of course, plenty of fonts to check out, download, and play with in your own projects.

A minimalist, intentional design approach was adopted, featuring a purposefully present menu, an RSS feed, and layout choices ranging from justified to centered, grid to off-grid, paying homage to early web aesthetics.

— Raphaël Bastide

As for behind the scenes details, the front-end of this site is custom-built, without the help of a full-blown front-end framework. On of the few third party dependencies here is the lightbox plugin Chocolat. There are no familiar third party modules visible on the front-end, so not much we can say about that aspect.

Big thanks to Raphaël Bastide for sharing this project with us, as well as sticking with ProcessWire through the years; Velvetyne is a brilliant project, and we're very happy to have this website featured in our sites directory, as well as our site of the week!

Stay tuned for our next issue

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