The Blog

Statamic

Statamic

That Escalated Quickly: All the New Things

John Koster
John Koster
December 10, 2023

The past six months or so have been incredibly busy. What started as a new article series about customizing Statamic's search escalated quickly.

Statamic

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

John Koster
John Koster
November 30, 2023

In this post I talk about how I resolved a mysterious illegal offset type error when viewing collection entries within the Statamic Control Panel.

Statamic

Creating Simple HTTP Redirect Routes from a Statamic Site

John Koster
John Koster
November 29, 2023

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

Statamic

Creating a Hybrid Cache System for Statamic: Part Five

John Koster
John Koster
September 3, 2023

Part 5 of 6 covers implementing a cache namespace and labeling system, which we can use to target multiple cache entries simultaneously for invalidation.

Statamic

Creating a Hybrid Cache System for Statamic: Part Four

John Koster
John Koster
September 3, 2023

Part 4 of 6 covers implementing new features to set arbitrary expiration times from within a template and mechanisms to invalidate all cached responses at once.

Statamic

Creating a Hybrid Cache System for Statamic: Part Six

John Koster
John Koster
September 3, 2023

Part 6 of 6 covers implementing custom Artisan commands to retrieve information about our cache, invalidating responses returned from Laravel routes and controllers, excluding pages with CSRF tokens, and examples of how to integrate with third-party systems like Torchlight.

Statamic

Creating a Hybrid Cache System for Statamic: Part Three

John Koster
John Koster
September 3, 2023

Part 3 of 6 covers managing response headers, configuring the custom cache system, and implementing mechanisms to bypass the cache entirely.

Statamic

Creating a Hybrid Cache System for Statamic: Part Two

John Koster
John Koster
September 3, 2023

Part 2 of 6 covers invalidating cached responses when template changes are detected and detecting request content dependencies, such as entries, taxonomies, and assets.

Statamic

Creating a Hybrid Cache System for Statamic

John Koster
John Koster
September 3, 2023

Part 1 of 6 covers experimenting with various cache systems, techniques, and organization of our custom cache system.

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.

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