ProcessWire Weekly #584

The 584th 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 the latest core updates available via the dev branch at GitHub, as well as take a closer look at a new third party ProcessWire module that we very briefly mentioned in our previous issue: Page Action Include File by Robin Sallis.

As always we've also got a new site of the week to highlight, and this week that site belongs to the Swiss communications agency Newsroom Communication. Their recently redesigned and recreated website is a truly beautiful and very interesting agency site, and we're thrilled to have it featured as our latest site of the week. Keep on reading to hear more about this project, and more!

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

This week we've got a few new updates for the core available via the dev branch. Said updates include some fixes, a few style tweaks for the admin, and also at least one feature update.

Here's a brief summary of what's new since last week:

  • Updates to the new admin theme style designed by Konkat studio. These include updates for supported CSS variables, as well as style updates for various Uikit and admin (or jQuery UI) elements — including cards, progress bars, and alerts.
  • Updates to TinyMCE inputfield content.css styles, primarily focused on improved code and pre element readability.
  • New AdminThemeUikit settings:
    • useBoldItemHeaders for toggling bold headers for repeaters, files, etc.
    • usePageListButtons for converting page list action links to buttons
    • useInputFocus for highlighting focused inputs
  • Process modules now support the use of icons in their headlines. This can be achieved by adding <icon-name> to the headline, where 'name' is a FontAwesome icon supported by the admin.

There were additionally some minor bug fixes, including one that fixed a situation where Lister subfields could be incorrectly linked show page actions when clicked on, but only under very specific conditions.

That's all for our core updates section this week. There's no weekly update from Ryan to share this time, but feel free to check out the weekly dev branch commit log at GitHub for more details. Thanks!

New module: Page Action Include File

Page Action: Include File is a new module from Robin Sallis. We mentioned this one briefly in our previous issue, but wanted to take a closer look now that we've had a bit more time to get to know it.

This module can be used to create new Page Actions for use with ListerPro (which is a commercial Pro module) with minimal effort: instead of going through the process of creating a new Page Action module for each action, you can simply add the code that you want to execute as a PHP file into /site/templates/PageActionIncludeFile/ and run it by selecting the "Include File" action from the Lister UI, and then selecting said file from the "Select action file" dropdown.

Screen capture of the UI of Page Action: Include File, courtesy of module author Robin Sallis.

Here's an example of what a simple action file might look like:

<?php namespace ProcessWire;

// Uppercase the first letter of the title
$item->title = mb_strtoupper(mb_substr($item->title, 0, 1)) . mb_substr($item->title, 1);

Drop this file as uppercase_first_letter_of_title.php into aforementioned directory and you've got a working page action right there. Won't get much easier than that.

In this context variable $item refers to the item being processed, and there is no need to save the page as Lister will take care of that. Also, since Lister splits processed pages automatically into chunks, your action should run smoothly even against a very large number of pages. It may, of course, take a while to complete.

As of this writing Page Action: Include File is not available via the modules directory, so if you'd like to give it a try, you must clone or download the module's source code from the PageActionIncludeFile GitHub repository. The repository has some additional info about the module as well, so check it out for more details.

Big thanks to Robin Sallis for creating this module and making it available for the ProcessWire community. Splendid work as always!

Site of the week: Newsroom Communication

Our latest site of the week is that of Newsroom Communication, which a communications agency located in Bern, Switzerland. Their website was rebuilt and reimagined in-house to celebrate the 10 year history of the agency, while the implementation of a new, ProcessWire powered website was handled by another Swiss agency, Fruitcake.

The Newsroom Commmunication website is, simply put, one of the most interesting agency sites that we've run into in a while: from a unique visual style to a captivating and somewhat quirky user interface, and top-notch copywriting — it is a great showcase of the agency's work in itself, and definitely feels like a proper way to introduce their services, projects, products, and team.

At Newsroom Communication, we offer a unique blend of innovative consulting and operational support in all areas of modern communication: video, text, graphics, campaigns, and audio. Our customized solutions and commitment to quality make us the ideal partner for your communication needs. From strategy development to implementation: We live and breathe the newsroom.

There's a brief introduction / case story for this project at the Fruitcake website, so be sure to check it out. Taking a quick peek behind the scenes, it looks like the front-end of this site was largely hand-crafted, as there are no signs of a full-blown front-end framework here. Some familiar third party features used on this site include tiny slider and animations created with the open-source library Lottie.

Our congratulations to the client, Newsroom Communication, for their new, ProcessWire powered website. This is a beautifully designed and skilfully implemented project — great work from everyone involved!

Stay tuned for our next issue

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