The 112th issue of ProcessWire Weekly brings in all the latest news from the ProcessWire community. Modules, sites, and more. Read on!
Hello there and welcome to the 112th issue of ProcessWire Weekly! This time we're going to introduce the latest updates to the core package, take a closer look at some recently released site profiles, and introduce one new module and a brand new site of the week.
We'd also like to give a special mention to a project that has been well received among ProcessWire users, and has just gone through a major update: here's the successor to the original REST helper for ProcessWire, here's the new REST helper for ProcessWire. Big thanks to @clsource for all your amazing contributions!
Thanks to all of our readers for being here with us again, and as always, feedback is always 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!
ProcessWire 3.0.24 and 2.8.24 introduce page traversal improvements and more!
According to Ryan's latest post at the processwire.com blog, the past week has been all about taking care of GitHub issues, but we've also got some very nice improvements for the page traversal features and a couple of totally new features too.
Taking care of page traversal bottlenecks
More specifically traversal methods that need to be aware of the position of the page in relation to it's siblings, such as
$page->next(), have received vast improvements in terms of scalability and performance.
These features have been around for a long time, but they used to come with serious slowdowns when dealing with thousands of siblings. From now on such issues should be a thing of the past – at least unless you're dealing with millions of sibling pages.
“Save and edit next” in Page Editor
A feature requested via GitHub, "save and edit next" is a pretty obvious addition to the save actions in Page Editor now that the performance issues related to sibling traversal features have been taken care of.
This action can be quite handy for saving entire page reloads and shaving off a bunch of unnecessary clicks while editing a bunch of adjacent pages. After all it's often the small things that count when it comes to providing great user experience.
$page->index() API method
New API method
$page->index() can output the position of current page in relation to it's siblings as a zero-based index number. This method was also made possible thanks to the page traversal updates introduced this week.
For more details about – and background information for – the core updates this week and a few interesting tips on what to expect next week, don't forget to check out Ryan's latest blog post. Thanks!
Latest site profiles for ProcessWire: Bootstrap 4 and Foundation 6 in action
In the case of ProcessWire site profiles are essentially pre-defined structures, complete with markup and everything, that you can choose from while creating a new site. We've got a bunch of these available already from our modules directory, but here are two of the most recent ones, which very much deserve a special mention here:
- Bootstrap 4 minimal site profile is based on the cutting edge version of the Bootstrap front-end framework, Bootstrap 4. This site profile provides a full-featured basic site with a simple layout. Included in the package are Font Awesome, MeanMenu, and a bunch of other commonly used features.
- Foundation 6 minimal site profile is based on the latest version of the Foundation front-end framework and functionally similar to the Bootstrap 4 framework above. This site profile also includes Font Awesome and MeanMenu, but also the Slick Carousel, a replacement for Foundations built-in but deprecated Orbit slider.
Both site profiles are available as SASS versions you can compile yourself or as pre-compiled CSS versions for those not interested in setting up and learning the SASS syntax. Personally I'd suggest taking the extra time to learn SASS, but obviously this route is not for everyone, and either way it's good to have both options available.
Both site profiles were developed by forum user @flydev and can be downloaded from GitHub. Please check out the README files or the support forum topics linked above for more details, installation instructions, etc. Big thanks to @flydev for his contributions!
Site of the week: Haojie
Our latest site of the week belongs to Haojie, a Chinese restaurant located in Bath, UK. Haojie offers a Chinese buffet, bar and takeaway, and in their own words they aim to "leave you happy in heart and full in belly". Sounds pretty good to me!
Crafted by PROGRESS, the site of Haojie site is downright brilliant in it's simplicity, style, and unique charm. The site features some great-looking front-end features, design that has a very mobile first feel to it yet is simultaneously perfectly suited for larger screens, and some rather creative use of both animations and subtle effects.
From a technical point of view the site is based on the Bootstrap front-end framework, makes use of AIOM+ for it's minification needs, and apparently GreenSock components for at least some of those neat-looking animated front-end goodies.
Congratulations to Haojie for having such a wonderful site – and thanks to PROGRESS for sharing their work with us. We sincerely hope that this site serves it's purpose as well as one would assume!
Stay tuned for our next issue
That's it for the 112th issue of ProcessWire Weekly. We'll be back with more news, updates, and content Saturday, 9th 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!