In the 216th issue of ProcessWire Weekly we introduce ProcessWire 3.0.107, take a look at a brand new GDPR related cookie consent module from Adrian Jones, and finally have a quick dip into the ICF Conference 2019 website.
Welcome to the 216th issue of ProcessWire Weekly! This week we're going to take a closer look at the latest core updates introduced by Ryan in ProcessWire 3.0.107, and a brand new third party cookie consent module developed by Adrian Jones.
As always a big thank you to all of you for being here with us, and please don't hesitate to drop us a note if there's anything in your mind that you'd like to share. Your feedback helps us focus on the things that you folks want to hear more about.
Latest core updates: ProcessWire 3.0.107
In this week's post at the processwire.com blog Ryan takes the time to introduce our latest dev release, ProcessWire 3.0.107. This version adds a couple of features geared towards making the lives of both content editors and developers a bit easier
First of all here are the content editor focused updates added in this release:
- You can now optionally choose to display the Trash section of the Page Tree for non-superusers as well. Trash is still access controlled, so content editors will only be able to see or restore trashed pages they also have delete permission to.
- Talking about restoring pages, there's a new helper (or "dumpster dive assistant", as Ryan describes it) for restoring trashed content: when editing a page in trash, right before the Delete tab you'll find a new Restore tab, which behaves exactly like the Delete tab – except in the opposite direction.
- Finally, a new non-editable field labeled "What pages point to this one?" has been added to the Settings tab of the page editor. This field includes a list of references to current page within both Page Reference fields and links in HTML content – the latter assuming that those links are found from a Textarea field with HTML content type and link abstraction enabled.
Developer focused changes are closely related to the content editor updates mentioned above, and they all add something new to the $page API variable:
$page->restorable()returns a boolean indicating whether or not current Page can be restored from the trash to its original location by the current user.
$page->references()returns a PageArray of all pages referencing the one it was called from via Page fields. Supports optinal $selector and $field arguments.
- Related properties: $page->references, $page->referencing, $page>numReferences, and $page->hasReferences.
$page->links()returns pages that are linking to $page with
<a href="...">links within HTML content in applicable Textarea fields.
- Related properties: $page->links, $page->numLinks, and $page->hasLinks.
$page->urls()returns an array containing all the URLs that the page is accessible from, such as separate multi-language URLs, or any past URLs that are being automatically redirected to the current one.
There were also some smaller updates to the core this week, such as a new $modules->getModuleInfoProperty() method and new lazy-loading option for WireInput. For more details about this weeks updates check out the latest post at the processwire.com blog.
Site of the week: ICF Conference 2019
Our latest site of the week is the ICF Conference 2019 website, and there are a couple of reasons why this project is particularly interesting. But first of all, what is the ICF Conference? ICF stands for International Christian Fellowship – a non-denominational church with a biblical foundation – and the ICF Conference is an event they hold at Zurich, with like-minded speakers from all around the globe.
As ProcessWire enthusiasts we're particularly thrilled about not just the stunning visuals of the site, but also the tech stack powering this site. In this case we can talk about a stack, as there are various components in play here: the front-end is a SPA that combines Vue.js, Quasar, and Uikit, while ProcessWire is used as a headless CMS, providing data for the front-end through a JSON API. Said API was, in fact, created with the Page Query Boss module we introduced in ProcessWire Weekly #207.
Both the ICF Conference 2019 website and the Page Query Boss module powering it were crafted by Noel Boss, a full stack web developer at the ICF Church. If you're in any way interested in how all that cool tech stuff really comes together, we'd like to recommend checking out the Medium post Noel wrote about the ICF Conference website, labeled ProcessWire & Vue.js – a Lovestory.
Once again we'd like to thank Noel Boss and the ICF Church for their dedication to ProcessWire. The website of the ICF Conference is obviously top-notch, and we wish all the best for the conference as well!
Stay tuned for our next issue
That's it for the 216th issue of ProcessWire Weekly. We'll be back with more news, updates, and content Saturday, 7th 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!