Introduction
Selling Craft to clients, craft.dev, news, plugins and Craft tips.
Welcome to another collection of Craft links. Links about selling Craft to your clients. Links with news and updates. Links with tips, plugins and more. The Craft community comes through once again.
Every issue starts completely blank though. If you've written something Craft-related, head over to the link submission page.
Thank you to this issue's sponsors!
Fortrabbit is affordable, easy-to-use, and developer-friendly. Learn about hosting your next Craft site on Fortrabbit.
Freeform from Solspace has complex forms covered with built-in conditional logic, even for multi-page forms. Get the details here.
Let's hit the links.
-John Morton
Top Stories
Selling Craft to Your Clients
The Craft CMS site and documentation keeps getting better. Here’s proof.
A question was recently asked in Discord for some links to help sell Craft to a potential client. Instead of links to various places around the web, the best stuff is now collected right on the main Craft site. The posts should get you started selling your next Craft site to your clients.
News
Craft 3.1.15
The features of the ./craft
console command has grown. Craft CMS v 3.1.15 added the resave/assets
, resave/categories
, resave/entries
, resave/tags
, and resave/users
commands. If this interests you, look for the “Exploring the Craft CMS 3 Console Command Line” link later in this issue.
Craft 3.0.41
If you’re still holding out on the jump to 3.1, the 3.0.x branch addresses some cross-site scripting vulnerabilities and a few other tweaks.
Craft 2.7.5
Craft 2.x is still getting updates. Suspended users are no longer shown when viewing pending or locked users. Like the 3.0.41 release, it also fixes some cross-site scripting vulnerabilities.
craft.dev is now whitelisted
The .dev
domain fell out of favor for local development after Google purchased it, making it an official TLD.
Once .dev
became an official top-level domain, it would no longer work in Chrome as a developer's go-to domain for local development. Google has begun selling access to .dev
, and the Craft CMS team has officially registered craft.dev
. You may now return to using craft.dev
for your local development because Craft has been updated to see it as a dev URL, as seen in the link above.
You might need to update your hosts file to redirect craft.dev back to localhost.
Featured Sponsor

Craft CMS Hosting Partner
We like to automate ALL THE THINGS — except customer support.
Get started with a free trial today! And ask whenever you have any questions.
Tools, tips, and fundamentals
Craft CMS Webpack Foundation
Webpack / Laravel Mix build process for CMS. It includes Foundation-for-Sites framework.
Fetching routes into Twig templates in Craft CMS
Craft Snippets is a new site featuring reusable Craft components and other tips. The first post is about fetching routes in your templates.
Setting up Perch Runway, Craft CMS, Statamic and Laravel Valet
Interested in using Laravel Valet for your local development? Scott Gruber discusses getting it installed and then working with several popular CMS’s including Craft.
🧹Clean Code Tip 🧹from Jake Dohm
Jake suggests not passing settings in your Twig code that match the defaults. See his screenshot for details.
Component naming tip from Nathaniel Hammond
Nathaniel suggests using the {{_self}}
Twig variable in your templates during development to make visually debugging your templates a bit easier.
Check out Andrew's Template Comments plugin for pre-packaged help doing a similar thing.
Netdata: Real-time performance monitoring, done right
Netdata is distributed, real-time, performance and health monitoring for systems and applications. It is a highly optimized monitoring agent you install on all your systems and containers.
Performance Budget Calculator
"I want my site to load in (blank) seconds on a (blank) connection." (I can hear Gene Rayburn reading that sentence.)
Conveyor – A development workflow that keeps you in the zone
A new thing on the internet for your web workflow.
Conveyor replaces your Git client, hosted version control service, and task management with a single, integrated development workflow.
Perfecting your technique
Taming Dexerto.com - One Million Hits At A Time
Matt Gray does another deep dive. This time he has a problem to solve with a Craft-powered site finding more success than anticipated.
[The site's traffic] has recently reached high enough volume to generate daily unique hits in the millions and total request counts in the tens of millions. Daily.
Exploring the Craft CMS 3 Console Command Line
Craft CMS 3 comes with many useful commands that can be executed via the console command line interface (CLI). In this article, we explore some of the more useful commands
Passing your Craft CMS data to Vue.js with Twig | Good Work
One of the unique challenges of using Vue JS with Craft CMS is how you get your data from Craft into Vue.
Jake Dohm offers a couple of solutions in his post.
Using Fractal with Craft CMS
Fractal by Clearleft is a recently-discovered tool that helps us build and document web component libraries and use them in our projects. We've spent some time working out how to use it with another one of our favorite tools, Craft CMS.
nystudio107/dotenvy:
Speed up your production sites by ditching .env
for key/value variable pairs as Apache, Nginx, and shell equivalents.
Content Strategy - CTRL+CLICK CAST
Carrie Hane, a speaker at the first Dot All conference, is the guest on this episode of CTRL+CLICK. "Carrie explains what to expect with content strategy, where it fits in a project life cycle, plus the value this strategy brings to designers, developers, and clients."
Docker-based hosting on your own VPS
As I am a developer in love with Docker, I thought using it for production would be fun.
Sponsor

Conditional Rules Logic for Fields and Pages
Freeform Pro includes built-in Conditional Rules Logic that can be added to forms, which allows you to effortlessly set fields to show or hide based on the contents/selection of other fields, and even skip pages for multi-page forms based on the contents/selection of fields on a previous page. For your next website build, don’t mess around with your forms… leave the heavy lifting to Freeform Pro!
Plugged In
Support contact mechanisms plugins
Ever wonder how to best support your plugin for your customers? So did Andrew. He asked the internet. Check out the results.
Plugins, the Plugin Store, and future versions of Craft
There was a good discussion in the #plugin channel Feb 22-23, 2019 about how plugins and the plugin store will be handled as Craft moves through major updates.
What happens to a Craft 3 plugin that isn't updated to Craft 4? Can developers disable plugins in the store? What about plugins that still work and are actively used that are no longer supported by the developer?
Now that we’re using Discord instead of Slack, the history of conversations isn't lost behind a paywall. You do have to be a member of the Craft Discord group, which is free to join.
This conversation kicked off around here.
Embedded Assets 2.0 released
Spicy Web has taken over maintenance of the popular Embedded Assets plugin, created by Benjamin Fleming. If you're updating from the previous version, "make sure you remove the old package by running composer remove benjamminf/craft-embedded-assets
from your terminal."
Snipcart by Working Concept
Snipcart provides full-featured e-commerce as a service, and the Snipcart plugin tightly integrates with Craft CMS for fast setup and powerful customization with minimal development.
Got questions about getting it up and running? Check out the docs.
Stage File Proxy
Stage File Proxy is a general solution for getting production files on a development server on demand.
Abandoned Cart for Craft Commerce 2
Abandoned Cart for Craft Commerce 2 is a plugin that provides the ability to send multiple email reminders to customers that have abandoned their carts. This is a proven way to increase what would typically be lost revenue.
Link
Link is the most robust and configurable 'link' field type for Craft CMS. Built with the content publisher in mind, Link has an intuitive, easy-to-configure interface that enables admins to build a field precisely to their requirements.
Link field for Craft 3
This plugin adds a new link field type to the Craft CMS. The link field allows content editors to choose from a list of link types and offers individual input fields for each of them.
Doorman
This plugin allows you to mask a URL behind another public-facing URL that you can easily cache.
Template Comments
This plugin was mentioned earlier in the tips section. It puts comments in your code to help you quickly understand your page structure while devMode
is turned on.
HTML Cache plugin for Craft CMS 3.x
This plugin generates static HTML files from your dynamic Craft CMS project. After an HTML file is generated, your web server will serve that file instead of processing heavier and slower PHP scripts.
Klarna Checkout for Craft Commerce
This plugin provides Klarna integrations for Craft Commerce 2. This version supports European store locations.
The Craft Advantage
It’s not Craft, but it’s interesting.

devMode.fm // CSS in JS, an Emotional Topic!
This episode wades into "the controversy surrounding CSS in JS, and how we ended up where we are."
Manage your Laravel Forge Sites and Servers through Alfred
Alfred is a popular keyboard shortcut/productivity Mac utility. This post shows you how to work with your Laravel Forge servers using Alfred.