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

Where Things get Good: Moving on to Forte Development Phase 1

Wrapping up Forte Phase 0 with the lexer and parser now in private alpha, and kicking off Phase 1 wi...

Read more
Forte Update: Backtracking, Metadata, HTML Validation, and More

A Forte development update: the parser now supports backtracking, improvements to node metadata, ide...

Read more
Parsing HTML and Blade Attributes in Forte

Wrapping up attribute parsing in Forte's HTML parser, from simple HTML attributes to complex, edge-c...

Read more
Switch Statements and Parser Extensions in Forte

Exploring how Forte's parser extensions can be used to handle complex Blade directives like nested s...

Read more
Parsing Blade Comments in Forte

Digging into parsing Blade and HTML comments while building Forte's HTML parser for Laravel Blade.

Read more
Thoughts on HTML Elements and Blade Components in Forte

This week I’m tackling Forte's HTML parser - consolidating Blade, Flux, and Livewire components into...

Read more