The Blog

Statamic

Swapping Antlers Layouts and Passing Data to Layouts

John Koster
John Koster
April 10, 2023

Discover how to create a custom Statamic Tag in this step-by-step guide, enabling dynamic layout changes and sharing variables with your layouts in Antlers templates. Learn the implementation process, utilize the make:addon command, and explore the internal workings of Statamic to master custom layout behavior.

Development Resources

How to Structure Your Cybersecurity Team to Work in an Agile Environment

External Contribution
External Contribution
February 10, 2023

Organizing a cybersecurity team with clear goals, skills assessment, role assignment, training, workload management, and a supervisor using agile methods helps protect against threats, improves efficiency, boosts innovation, and avoids burnout.

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.

Development Resources

Antlers and Blade Formatters: Behind the Scenes

John Koster
John Koster
July 18, 2022

This article provides a very brief overview of how both the Antlers and Blade formatters work. Both formatters are offered as a Prettier plugin.

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.

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