The Blog

Statamic

Statamic

A Beginners Guide to Antlers Arrays and Loops

John Koster
John Koster
November 1, 2022

This in-depth guide provides a beginner-friendly introduction to Antlers arrays and loops. In it, we look at the basics of Antlers arrays, techniques for working with named scopes and nested arrays, and methods for randomly inserting supplementary content into blog post listings.

Statamic

Creating Dynamic CSS Class Names with Statamic

John Koster
John Koster
May 29, 2022

Learn to construct dynamic CSS class names using Antlers sections when creating Statamic sites.

Statamic

Working With Dynamic Variables in Antlers Runtime

John Koster
John Koster
May 4, 2022

Antlers Runtime supports the concept of dynamic variables, which can be used to retrieve data dynamically, without knowing the variable name ahead of time.

Statamic

Managing Imported Fieldset Handles with Antlers Runtime

John Koster
John Koster
April 22, 2022

Antlers Runtime makes it easier to work with prefixed fieldsets when reusable fieldsets and partials.

Statamic

Antlers Conditional Parameters Using void Parameters

John Koster
John Koster
April 18, 2022

In this article we will look at a way to conditionally add or remove tag parameters without requiring duplicate code, or large if statements.

Statamic

Creating a Content Reaction System with Statamic 3 and Antlers

John Koster
John Koster
December 12, 2021

This article covers a variety of intermediate-to-advanced Antlers topics by implementing a visitor reactions system using Statamic 3 and Antlers

Statamic

Creating a Stacked Content Layout with Statamic 3 and Antlers

John Koster
John Koster
December 5, 2021

This article covers creating a stacked content layout with Statamic and Antler by utilizing array access features.

Statamic

Creating a Statamic Compact Modifier

John Koster
John Koster
November 7, 2021

Throughout this guide we will explore Statamic modifiers by creating a modifier that will allow us to iterate multiple Antlers variables.

Statamic

Using Modifiers in Antlers Dynamic Bindings

John Koster
John Koster
November 7, 2021

Utilizing modifiers within Antlers dynamic bindings can be a powerful way to simply templates.

Statamic

Creating a Custom Statamic 500 Server Error Page: Part Two

John Koster
John Koster
September 12, 2021

Creating a dynamic Statamic 500 Server Error page is a relatively simple process, as well as developing a custom Antlers tag to help test it.

Latest posts

That Escalated Quickly: All the New Things

The past six months or so have been incredibly busy. What started as a new article series about cust...

Read more
Troubleshooting a Statamic Illegal Offset Type Error when Viewing Collection Entries in the Control Panel

In this post I talk about how I resolved a mysterious illegal offset type error when viewing collect...

Read more
Creating Simple HTTP Redirect Routes from a Statamic Site

Generating a custom Laravel routes file from a Statamic website to redirect to a new domain.

Read more
Disabling Vite File Hashes

Disabling file hashes in Vite output can be accomplished by modifying your project's vite.config.js

Read more
Implementing a Custom Laravel Blade Precompiler for Volt and Livewire

Learn how to implement a custom component compiler for Laravel's Blade templating language in this p...

Read more
Creating a Hybrid Cache System for Statamic: Part Five

Part 5 of 6 covers implementing a cache namespace and labeling system, which we can use to target mu...

Read more