The 656th 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're going to check out what's new in the dev branch of ProcessWire this week, as well as introduce a newly released third-party ProcessWire module called Media Files.
As always we've also got a new site of the week to check out. This week that site belongs to a San Diego based island resort Paradise Point. More about their gorgeous new website in just a bit, so keep on reading.
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 on your mind you'd like to share with us. Enjoy our latest issue and have a great weekend!
Latest core updates: ProcessWire 3.0.278
As Ryan mentions in his latest weekly update, we've just reached a new milestone: zero open issues in the processwire-issues repository! To be fully transparent there are a few new ones there as of this writing, but the fact that we've actually managed to resolve all pre-existing issues is definitely a reason to celebrate.
That's a ProcessWire first! No more to say other than more soon, and have a great weekend! 🙂
— Ryan
In total the dev branch got 58 new commits in the past week, and the last one bumps the version of the core to 3.0.278. Most of those commits came from Ryan, but Adrian Jones also contributed a few updates that were merged this week. Almost all of said commits are bug fixes and housekeeping, often adding new tests as well.
Here are some highlights from aforementioned fixes:
- Autojoin and findJoin() now work correctly for multi-value fields, including on PostgreSQL.
- Moving, renaming or changing the template of a page several times in one request now works.
- Focus-zoom crops are correct for EXIF-rotated images.
- Original files whose names look like image variations are no longer treated as variations.
- Several multi-language fixes, such as missing language inputs and blank-value inheritance.
- Admin works better on touch devices: dropdown submenus, taps in sortable lists, and image thumbnails on Android.
As for new feature additions this week, here are a few highlights of changes that fall more into that category:
- relativeTimeStr() can now compare the value against a date you pass in.
- Textarea fields have an option to limit how tall non-editable values get.
- The
noHooksoption for $page->save() now skips all save hooks. - Repeater item controls can now be used with the keyboard.
That's all for our core updates section this week. For a full changelog, check out the weekly commit history for the dev branch at GitHub, and don't forget to check out the weekly update from Ryan at the support forum as well. Thanks!
New module: Media Files
Media Files is a brand-new third-party ProcessWire module created at the KONKAT Studio. This module adds support for storing video files into ProcessWire's native image field, so that the image is in fact a poster from the video (first frame by default), and the video is stored separately on the page's files folder.
Project galleries often mix photos and short videos. Usually that means an image field plus a separate file field for the videos (losing the order between them), a repeater per item, or embeds from YouTube or Vimeo when the client just wants to drop in an mp4.
— diogo
The module is designed to work well with the native image field, only adding what is most important for handling video files: a player that can be displayed in the edit panel, and a way to choose the poster frame from the video file. Another potentially interesting (and very reasonable) design decision is that uninstalling the module won't actually break anything — your site will work just as it did when the module was still installed, just without those editor features.
Here's an example of how you would access stored data in your template files:
<?php $img = $page->hero;
if($img):
$video = $img->filedata('video');
if($video):
$type = str_replace('ogv', 'ogg', $img->filedata('videoExt')); ?>
<video autoplay muted loop playsinline poster="<?= $img->url ?>">
<source
src="<?= $img->pagefiles->url . rawurlencode($video) ?>"
type="video/<?= $type ?>"
>
</video>
<?php else: ?>
<img
src="<?= $img->url ?>"
alt="<?= $sanitizer->entities($img->description) ?>"
>
<?php endif;
endif; ?>In addition to video and videoExt, filedata will also contain other useful keys: videoFilename, videoBasename, videoFilesize, and videoFilesizeStr. For more details about these, as well as more code samples, check out the modules directory entry for Media Files.
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 it from the MediaFiles GitHub repository. If you need help with the module or would like to make suggestions, head down to the Media Files support forum thread.
Big thanks to KONKAT Studio and Diogo Oliveira for creating this module and sharing it with us!
Site of the week: Paradise Point
Our latest site of the week belongs to Paradise Point — an island resort covering 44 acres of Mission Bay in San Diego, with about a mile of sandy beach. The resort is roughly 10 minutes from downtown and close to SeaWorld, Balboa Park, and the San Diego Zoo. It is a part of the Curator Hotel & Resort Collection.
With a mile of sandy beach, bungalow-style accommodations, five sparkling pools, waterfront dining, a full-service spa, and endless recreation, Paradise Point Resort & Spa offers something for every kind of getaway
— Paradise Point
The Paradise Point website features a beautiful design and a photo-heavy layout, as well as a full-width video element to greet visitors as the first thing on the home page. Content-wise this is a typical hotel or resort site, covering available accommodations, dining options, activities, the spa services, and specific occasions — such as weddings, meetings, and events. Each restaurant, wedding venue and meeting space has its own page as well, and there's also an events calendar, a blog, and booking system call-to-action elements.
As for some behind the scenes details, the front-end of this site is built on top of the Uikit front-end framework, with additional dynamic features provided by the Alpine.js JavaScript framework and the htmx library. When it comes to the ProcessWire side of things, there's at least one familiar module that we could spot in action here: the commercial caching and optimization all-in-one solution ProCache.
Our congratulations to Paradise Point for their new, ProcessWire powered website — it's definitely looking great, just as the resort itself!
Stay tuned for our next issue
That's it for the 656th issue of ProcessWire Weekly. We'll be back with more news, updates, and content Saturday, 12th 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