In the 540th issue of ProcessWire Weekly we'll check out the latest core updates, introduce a new third party module called Page List Custom Sort, 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 at GitHub, introducing a few brand-new core additions, and we'll also check out a brand-new third party module called Page List Custom Sort.
As always we've got a new site of the week to highlight. This week that is the site that belongs to Andreas Mehltretter, a member of the German Bundestag. Keep on reading for more details!
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 don't have a weekly update from Ryan to share, but there are some new core updates, which we'll cover briefly here. These updates are all related to the admin interface in one way or another:
- Support for matching data attributes in show-if conditions.
This feature is pretty self-explanatory. It should be noted, though, that it may not work with all input types just yet; e.g. support for checkboxes input type isn't yet implemented. - Automatic addition of data attributes for Fieldtype Options values.
Together with data attribute support, this makes it possible to use option values, as an alternative to value IDs, in show-if conditions. The data attribute applied to individual options is "data-if-value", which you can use in show-if conditions like this:colors.data-if-value=blue
. - Support for ajaxParams option for the ProcessPageList() JavaScript function.
This feature was contributed by Bernhard Baumrock and allows developers to provide extra context params for hooks. For more information, check out the detailed introduction by Bernhard in pull request #302.
That's all for our core updates section this week. For more details, feel free to check out the weekly dev branch commit log at GitHub.
New module: Page List Custom Sort
Page List Custom Sort is a brand-new third party module created at EPRC. In a nutshell it adds a new "custom" sort order option for sorting children in the page tree. Just like when sorting pages via selector strings, this option allows one to type in one or more properties (or subproperties) and to use minus sign for reversing the sort order.
The "custom" sort option is added to both template level family settings tab, as well as the per page sort setting for children. Once defined, it automatically changes the order of results in the page list in the admin, the $page->children()
method, and the $page->siblings()
method.
If you want to use custom sort setting when finding pages, you can refer to this option as "_custom" — e.g. $page->find('sort=_custom')
.
If you'd like to give this module a try, you can install it via the modules manager in the admin, or clone or download it from the PageListCustomSort GitHub repository. Please note that this module is currently at beta stage, so extra caution is recommended. If you have any questions, head down to the Page List Custom Sort forum thread.
Big thanks to the team at EPRC for creating this module and sharing it with us!
Site of the week: Andreas Mehltretter – Mitglied des Deutschen Bundestages
Our latest site of the week belongs to Andreas Mehltretter — a native of Freising, Germany, and a member of the German Bundestag, the national parliament of Germany.
Andreas Mehltretter, a native of Freising, is a member of the German Bundestag. In his political work, he discusses with colleagues in the SPD parliamentary group and also in the other parliamentary groups, as well as with his team, who support him in terms of content.
— Sites directory entry for the Andreas Mehltretter portfolio site
This website was created by typneun Designagentur and serves as an introduction to Andreas and his politics and achievements. Among other things this site contains a news section, an events section, an archive of past speeches, and of course media and contact information — all presented within a very nice and clean design, using a color palette that is obviously derived from the visual style of Andreas' political party, SDP.
As for behind the scenes details, the front-end of this website appears to be based on an in-house front-end framework, which is complemented by some familiar JavaScript libraries, such as PhotoSwipe, Slick, and jQuery. Thissite also includes a seamlessly integrated subscription form for third party email marketing system MailerLite.
Thanks to the folks at typneun Designagentur for sharing this project with us, and our congratulations to Andreas Mehltretter for his new, ProcessWire powered website!
Stay tuned for our next issue
That's all for the 540th issue of ProcessWire Weekly. We'll be back with more news, updates, and content Saturday, 21st of September. 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