In the 547th issue of ProcessWire Weekly we're going to check out the latest core updates, introduce a couple of new modules, and more. Read on!
Welcome to the latest issue of ProcessWire Weekly! In this week's issue we'll check out what's new in the core this week and share latest weekly update from Ryan. We've also got a couple of newly released third party modules to introduce, both from Bernhard Baumrock: RockMollie and RockCountries.
As always we've also got a new site of the week to highlight. This week that site belongs to a project with the hefty goal of reinventing and revitalizing a historical castle area in Heitersheim, Germany: Schlossareal Heitersheim. More details about this project and their gorgeous 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 in your mind you'd like to share with us. Enjoy our latest issue and have a great weekend!
Latest core updates: ProcessWire 3.0.242
This week there have been a few new commits to the core (dev branch), and the version has been bumped to 3.0.242. Two of aforementioned commits are bug fixes: one for PHP 8.4 compatibility, and another for cases where page names that start with a lesser than character (<) are displayed in admin page tree.
Third commit for this week is a small but potentially very useful feature addition: new hookable method to ProcessPageSearchLive for overriding what (e.g. which fields) the admin search box searches from. Here's an example of using this new hook:
$wire->addHookAfter(
'ProcessPageSearchLive::getDefaultPageSearchFields',
function(HookEvent $event) {
$event->return = [
'title',
'subtitle',
'categories.title',
];
}
);
As Ryan mentions in his latest weekly update at the support forum, he's back from his travels and looking forward to getting a new main/master release of ProcessWire out. Considering that our current development cycle has been going on for over a year, it's going to be a pretty big release.
That's all for our core updates section this week. For more details and news from the trip, which also brought face to face the people keeping the ProcessWire website and forum up and running, be sure to check out the weekly update from Ryan. Thanks!
New module: RockMollie
RockMollie is a new module created by Bernhard Baumrock. It was developed with the RockCommerce module in mind, but also works as a stand-alone module for enabling Mollie payments via your site.
This full-featured module makes it possible — and effortless — to create payments, manage customers, and process various payment methods, including credit cards, PayPal, and SEPA Direct Debit. You can find sample code for creating payments and handling SEPA Direct Debit from the RockMollie Docs page at baumrock.com.
Here's a little code snippet borrowed from the docs page, to demonstrate how payments are created:
$mollie = new \Mollie\Api\MollieApiClient();
$mollie->setApiKey('xxx');
$payment = $mollie->payments->create([
"amount" => [
"currency" => "EUR",
"value" => "10.00"
],
"description" => "My first API payment",
"redirectUrl" => "https://www.baumrock.com/thanks/",
"webhookUrl" => "https://www.baumrock.com/mollie-webhook/",
]);
db($payment);
If you'd like to give RockMollie a try, you can install it via the modules manager in the admin, or clone or download the module's source code from the RockMollie GitHub repository. If you have any questions or require assistance getting started, visit the RockMollie support forum thread.
Big thanks to Bernhard for creating this module and sharing it with us!
New module: RockCountries
RockCountries is another new ProcessWire module created by Bernhard Baumrock. Based on data from stefangabos/world_countries, this module provides easy access to country data, including names, different types of abbreviations, and even country flags.
You can find proper API docs for this module from the RockCountries Docs page at baumrock.com, but here's an example of how you could get a list of specific countries as an associative array with abbreviations as keys and names as values:
$countries = rockcountries()
->countries()
->filterAndSort('alpha2', 'at|de|ch')
->keyValueArray();
Since rockcountries()->countries()
returns an object that extend WireArray, you can use familiar methods from ProcessWire as well — find(), get(), each(), filter(), and so on.
If you'd like to give this module a try, you can install it via the built-in modules manager, or clone or download the module's code from the RockCountries GitHub repository. If you need additional support, head down to the RockCountries support forum thread.
Again big thanks to Bernhard for creating and sharing this very useful module!
Site of the week: Schlossareal Heitersheim
Our latest site of the week is that of Schlossareal Heitersheim, a German project that combines living, working, and culture. Essentially the project aims to convert the Heitersheim Castle area into a sustainable area combining housing for various age groups, culture, business, and everything that a lively community requires.
The Schlossareal Heitersheim website was created by designconcepts GmbH. One of its most noticeable features are definitely the colourful drawings that are used not just to add visual flair, but also as a means to convey information. The maps of the area are particularly nice detail. The layout of the site is very clean and straightforward, which makes content the centerpiece of the site, and also makes the site effortless to use.
As for behind the scenes details, the front-end of this site appears to be based on the UIkit front-end framework, with some custom additions on top of it. When it comes to ProcessWire modules, there's just one that we could spot on this site: the commercial caching and performance optimization tool ProCache.
Thanks to the team at designconcepts GmbH for sharing this project with us, and our congratulations for their new, ProcessWire powered website to the Schlossareal Heitersheim project!
Stay tuned for our next issue
That's it for the 547th issue of ProcessWire Weekly. We'll be back with more news, updates, and content Saturday, 8th 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