ProcessWire Weekly #287

In the 287th issue of ProcessWire Weekly we'll talk a bit about the latest core versions 3.0.144 and 3.0.145, introduce a third party module called Sanitizer EasySlugger, and publish a new #processwireworks poll. Read on!

Welcome to the latest issue of ProcessWire Weekly! This time we're going to talk a bit about the latest core updates introduced in ProcessWire 3.0.144 and 3.0.145, as well as take a closer look at a new third party module called Sanitizer EasySlugger.

Continuing with the #processwireworks theme, our latest poll asks about the types of clientele you folks work for, and we've also got a summary of last week's results. In case you haven't yet had a chance to answer our previous poll, note that it's still open, so head down to the Weekly #286 and let us know what your offering looks like.

(Weekly #286 also includes some clarifications for the result of our previous weeks poll. In short – as Robin S correctly pointed out – we may have somewhat underestimated the role of big ProcessWire projects. Again thanks to Robin for pointing this out.)

Last but not least, we've got a new site of the week to introduce. This particular site was crafted by the talented folks at the Internet Dreams Studio and belongs to UK based company Posh Gecko. It's a real feast for the eyes, so definitely check it out as well.

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.145

In the latest post at the processwire.com blog Ryan covers, in some depth, the updates included with ProcessWire 3.0.145 dev, as well as the updates introduced in last week's dev release, 3.0.144. Another topic that the blog post gets into are our short-term plans, which basically boil down to getting the next major release of the master branch out.

There are two major features covered in the blog post:

  • Field template context override settings
    Recent ProcessWire versions have introduced a number of improvements to the "overrides" tab displaying the field settings in the context of different templates.
  • Inputfields JavaScript API
    This new JS API is makes it easier to manipulate Inputfields from the JS side, and provides an elegant solution to various core and module development needs.

We mentioned both of these last week in our weekly issue, but in his post Ryan goes a bit further, explaining the reasoning behind these features, as well as including some examples of their use. The post also provides a list of available Inputfields JavaScript API methods, their parameters, and a summary of what each of them actually does.

For most parts this new JS API is intended for core and module development purposes, but it can actually come in handy whenever your goal is to modify the admin interface in some way, or perhaps provide additional clues to editors by implementing JavaScript widgets of your own – and what's particularly neat is that as soon as you've updated to the latest dev version, you can try them out directly in your browser's developer tools.

For more details and some sample code to try in terms of the Inputfields JavaScript API, be sure to check out the weekly blog post by Ryan. Thanks!

New module: Sanitizer EasySlugger by Robin Sallis

Sanitizer EasySlugger is a brand new module from Robin Sallis. What it does is basically integrating the EasySlugger library – described as "a fast PHP library to generate slugs, which allow to safely include any string as part of an URL" – into the built-in Sanitizer class of ProcessWire as a set of new methods:

echo $sanitizer->slugger('Lorem Ipsum');
// Result: lorem-ipsum

echo $sanitizer->utf8Slugger('这个用汉语怎么说');
// Result: zhe-ge-yong-han-yu-zen-me-shuo

echo $sanitizer->seoSlugger('The price is $5.99');
// Result: the-price-is-5-dollars-99-cents

echo $sanitizer->seoUtf8Slugger('价钱是 $5.99');
// Result: jia-qian-shi-5-dollars-99-cents

The separator generated by EasySlugger can be defined by providing an optional array of options to the method, and there's also an option of appending a random suffix to the slug in order to make it unique:

$slug = $sanitizer->utf8Slugger('这个用汉语怎么说', [
    'separator' => '_',
    'unique' => true,
]);
// Result: zhe_ge_yong_han_yu_zen_me_shuo_3ad66c4

While you can get similar slugs out of ProcessWire's native page name sanitization, the alternative and extended options provided by EasySlugger may well come in handy in cases where you're looking for some alternative or more specialised result, as can be seen in features like the seoSlugger, which generates particularly SEO friendly slugs.

If you'd like to give this module a try, you can install it via the built-in module installer in the ProcessWire Admin, or grab a copy of the module via the Sanitizer EasySlugger GitHub repository. Big thanks to Robin for sharing this project with us!

Weekly poll: how would you describe the clients you build ProcessWire based solutions for? (#processwireworks)

In this week's #processwireworks poll we'd like to ask you folks about the types of clients that you build ProcessWire based solutions for. We've included a list of options to choose from, but you can also suggest your own additions to the list by selecting the "something else" options at the end.

Now, before you answer: please choose as many types as you want. If you mostly for businesses but also do the occasional project for a non-profit, feel free to answer with both types. And just in case that you mainly work as a subcontractor for a company, please answer based on the owner of the site you're building for.

Thanks in advance for your answer!

  1.   Associations and unions (5.6%, 10)
  2.   Businesses and companies (32.2%, 58)
  3.   Colleges and educational institutions (8.9%, 16)
  4.   Governments, public services, and community organizations (7.8%, 14)
  5.   Individuals – celebs, politicians, athletes, artists, etc. (17.8%, 32)
  6.   Newspapers, magazines, television, or other media (3.9%, 7)
  7.   Nonprofit organizations (20%, 36)
  8.   Religious organizations (3.3%, 6)
  9.   Something else, what? (0.6%, 1)

Total votings: 180

In last week's poll we asked about the products and services you provide for your ProcessWire clients. The poll had quite a few options to choose from, and respondees were able to choose more than one option, and while website design and/or development was easily the most popular choice, plenty of respondees chose customer support, graphic design, hosting, and SEO as well.

The "something else" option didn't get that many answers, but the answers we got there included Conversion Rate Optimization (CRO), game development, video editing, 3D modeling, UX design, and – of course – secret sauce.

Here's a visual representation of the results we've got so far, with percentages representing the amount of votes for that option out of total votes:

The results for the "products and services you offer for your ProcessWire clients" poll: website design and/or development (22.6%), customer support (maintenance) (15.9%), graphic design (web or print) (13.1%), hosting and related services (11.1%), search engine optimization (11.1%), usability and/or accessibility consultation (8.3%), custom module development (7.1%), advertising and/or marketing (4.4%), mobile application development (3.6%), something else (2.8%).

Feel free to check out the poll archive for results of our earlier polls. All suggestions for future polls are more than welcome too. Thanks in advance for both your answer here and any additional suggestions or feedback you might have.

Site of the week: Posh Gecko

Our latest site of the week belongs to the video and animation company Posh Gecko.

Posh Gecko is a London and Peterborough based company with a talented team of producers and animators. Their ultimate goal is to create films that connect, and they have a really great showreel to show for their dedication, as well as a clientele that includes big names such as Epic Games, IKEA, and Autodesk.

The Posh Gecko website, created by Internet Dreams Studio, is quite a stunning experience on its own: not only are the visuals here top notch, but there's also quite a bit going on in terms of animation and fancy transitions. The contents of the site are also skillfully crafted, and the video samples – which, rightfully, play a major role on this site – are intriguing to say the least.

Taking a quick peek behind the scenes we can see that the front-end of this site is built on top of the Bootstrap front-end framework and the animations are achieved in part by using the rather popular Animate on Scroll JavaScript library, but apart from that we can't really say much about the underlying implementation; the ProcessWire end of things remains hidden, as it should.

Thanks to the Internet Dreams Studio for sharing this site with us, and congratulations to Posh Gecko for their new and amazingly visual website – brilliant job from everyone involved in this project!

Stay tuned for our next issue

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