Articles About Statamic

Are you looking to find out about how others are using Statamic in their projects? You've come to the right place...we're aggregating all the best Statamic content in one place.

  1. Setup Statamic using DDEV

    Matthias Andrasch Posted on December 21, 2022

    In this little series I try to setup a nice and clean deployment workflow for the PHP CMS Statamic

  2. Installing a Private Starter Kit in Statamic

    Alexander Stoffel Posted on December 06, 2022

    Statamic Starter Kits are great, but you might not always want to make them public. Here is how to install one from a private repository.

  3. Implementing Astro live previews in headless Statamic

    Maciek Palmowski Posted on October 23, 2022

    Using Astro with different headless CMSs is excellent and relatively easy to achieve. The only problem is dealing with the live previews.

    This article shows how to solve this problem.

  4. Render a selection or the most recent post with Antlers

    Rob de Kort Posted on July 15, 2022

    When working with collections like a portfolio or a blog you often want to list one or more posts on the homepage. My friend Philip Thygesen tipped me to use an entries field for this where the you can select an entry. If you don't select one it should fall back to the most recent entry in the collection. In this post I'll explain a quick and easy Antlers technique I started using a while back for incorporating this in my sites.

  5. Storing Files in Hetzner Volumes with Laravel and Statamic

    Alexander Stoffel Posted on July 03, 2022

    A quick tutorial on how to create Hetzner volumes and use them as massive filesystems in Laravel and Statamic projects.

  6. A rendered code example with Statamic, Tailwind and Alpine

    Rob de Kort Posted on June 14, 2022

    For recent journal entries about SVG clipping masks and animating clipping masks I wanted to render actual code examples in the article to show the reader what the end result of the tutorial would look like. Since I use the Tailwind CSS JIT compiler my website ships with a CSS file that contains only the classes that are actually being used in my template files. That seems very restricting as I would probably always use some unavailable class in my examples. So I came up with a solution that utilizes the Tailwind Play CDN to live parse the code snippet and return the CSS needed

  7. Using Mapbox to create a custom tiled map in Statamic

    Rob de Kort Posted on May 30, 2022

    For the Nieuw Allardsoog website Meinte Strikwerda drew a beautiful illustration of the estate. The goal of this post is to make the below illustration interactive, zoomable, and filled with interactive points of interest.

  8. Responsive images with Statamic, Tailwind and Glide

    Rob de Kort Posted on May 25, 2022

    In Statamic it's pretty easy to handle responsive images using Glide and Antlers. I initially wrote this post over two years ago for Statamic v2 and it's proven to be the most visited page of my website. For my new website I decided to give it an update. Here we go.

  9. Localize alt texts in Statamic

    Rob de Kort Posted on May 22, 2022

    Alt texts are very important for accessibility (a11y) and search engine optimization (SEO). Visually impaired users often make use of screen readers. It's software that interprets and reads out the contents of a website. Images of course can't be read out. So it's important to add so called alt texts to them. They also help search engines crawl and interpret the contents of your website.

  10. Statamic Tip: Invalidating Static Cache on Content Update

    Alexander Stoffel Posted on May 06, 2022

    Static caching gives your site a speed boost, but it can also lead to inconsistent content. Here's how you automatically clear exactly the right pages from your static cache.

  11. Working With Dynamic Variables in Antlers Runtime

    John Koster Posted on May 04, 2022

    There are rare situations where being able to reference a variable dynamically would make your life much easier (such as dynamic alt text). Antlers Runtime supports dynamic variables, and this article covers their usage.

  12. Statamic Starter Kits vs WordPress Themes

    Alexander Stoffel Posted on April 30, 2022

    WordPress has themes, Statamic has starter kits - both let you set up a new site quickly, but the approaches are quite different. Here are the main distinctions you should keep in mind when moving from WordPress to Statamic.

  13. Managing Fieldset Handles with Antlers Runtime

    John Koster Posted on April 22, 2022

    Managing prefixed imported fieldsets can sometimes be challenging when attempting to create reusable partials. However, the Antlers Runtime version provides ways to make this easier using the handle_prefix parameter.

  14. Statamic Tip: Using Forms with Static Caching

    Alexander Stoffel Posted on April 11, 2022

    Static Caching gives your site a speed boost, but sadly it also breaks any forms you may have. Here's how you can have the best of both worlds.

  15. Intro to Custom Form Handling in Statamic

    Alexander Stoffel Posted on April 07, 2022

    A quick look at how we can use the standard Statamic forms but add our own submission handling to create a custom newsletter signup form.

  16. Installing Statamic from scratch with Dotfiles

    Jay George Posted on April 05, 2022

    Installing a local environment for Statamic with a script file (dotfiles), with all the gnarly bits left in where I stumble and try to course correct.

  17. Setting Up Statamic Sites with Ploi

    Alexander Stoffel Posted on April 02, 2022

    Deploy tools are a godsend when you create websites for a living. Here's how Ploi.io can save you a ton of time when working with Statamic.

  18. Introduction to Statamic

    Maciek Palmowski Posted on April 01, 2022

    In this guide, I will introduce you to the basics of Statamic and explain how to build and deploy the changes and how to convert it to a static website.

  19. Building a Statamic Website From Scratch - Part 1 (Background)

    Andy Griffiths Posted on March 30, 2022

    Join Andy as he dives into building with Statamic, moving from another content management system, Concrete5

  20. CSV Exporter for Statamic

    Duncan McClean Posted on March 29, 2022

    At Steadfast Collective, we recently released our first Statamic addon. The addon allows users to export content as CSV files.

  21. Statamic's Caching Levels Explained

    Alexander Stoffel Posted on March 19, 2022

    Hardly any website would be usable today without some sort of caching - let's take a look at all the ways Laravel and Statamic cache information to help your website's performance.

  22. Improved Laravel Blade support in Statamic 3.3

    Rias Posted on March 10, 2022

    Statamic 3.3 has added some additional improvements to their Blade templates support, which makes using Statamic together with Laravel's native Blade templates truly a joy to work with.

  23. Event listeners for Statamic

    Arlind Musliu Posted on March 09, 2022

    How to utilise Laravel and Statamic Events for different use-cases in your projects. In this example we cover how to dump all your posts in a json file on every entry save.

  24. Statamic Tip: Showing Random Entries with Static Caching

    Alexander Stoffel Posted on March 08, 2022

    Static caching is a great way to increase your website performance, but it does present some obstacles. Since the entire site is served as HTML, it's not possible to show random content to the user with Antlers. Let's look at some workarounds.

  25. Statamic Tip: Protecting Documents from Unauthorized Access

    Alexander Stoffel Posted on March 04, 2022

    By default, any asset you upload to your Statamic control panel can be accessed by anyone on the internet. Here's an easy way to make sure only authorized users can download them instead.

  26. Statamic Tip: Using Tailwind Classes as Select Options

    Alexander Stoffel Posted on February 26, 2022

    Using Tailwind CSS when creating your Statamic site gets stuff done in no time. You can work even faster - and save a bunch of conditionals - by simply telling Tailwind to also check your fieldsets for classes used.

  27. Excluding Scripts and Parts of Templates in Statamic Live Preview

    Alexander Stoffel Posted on February 19, 2022

    Sometimes you might want to not include certain parts (like tracking scripts) in your site when viewing the live preview. Here's how this can be achieved using a custom Antlers tag.

  28. Creating a Content Reaction System with Statamic 3 and Antlers

    John Koster Posted on December 12, 2021

    Implements a system that allows site visitors to leave "reactions" on entries utilizing Antlers and a small amount of custom PHP code.

  29. Using Statamic on Laravel Vapor

    Duncan McClean Posted on June 22, 2021

    When pairing Statamic & Laravel Vapor together, there's a couple of things you'll need to watch out for - covered in this post.

  30. Integrating Laravel Spark, Stripe, and Statamic 3

    John Koster Posted on February 20, 2021

    A comprehensive guide on integrating Laravel Spark with Statamic. Covers installing Spark, and protecting content behind a pay-wall.

  31. Responsive Art direction in Statamic

    Rias Posted on February 05, 2021

    Art direction is nothing new, though there hasn't been an easy way to do it with most CMSs yet. Statamic, with the help of the spatie/statamic-responsive-images addon now offers an author- and developer-friendly way doing Art Direction with images.

  32. Building a Likes addon in Statamic 3

    Duncan McClean Posted on April 14, 2020

    This post walks you through the process of building a Statamic Likes addon, from bootstrapping to writing the code and setting up tests.

  33. Deploying Statamic 3 to a live web server

    Steven Grant Posted on January 27, 2020

    Steven walks us through what it looks like to deploy a Statamic 3 instance to a live web server.

  34. Running Statamic 3 on a Mac

    Steven Grant Posted on January 22, 2020

    Steven walks us through setting up a local Mac development environment for Statamic 3.