In a previous post I outlined a method for hot reloading Statamic's live preview using Alpine's Morph plugin. It works, but there's an issue: Alpine components on the page don't re-initialise when…
Statamic
Guides, tips, notes, and general ramblings.
Sometimes it's necessary to refactor your blueprints, for example if you decide that a field should be renamed or a set should have a different structure. While it's easy to edit the field…
The recently released field actions feature in Statamic allows you to add custom actions to built-in fieldtypes. By default actions apply to every instance of a particular fieldtype, and you can…
Statamic 3.4.8 includes a fantastic PR by Tom Diggelmann that adds the option to send the live preview a post message on update, rather than fully refreshing the page. This allows you to update the…
Statamic’s Bard fieldtype stores values as ProseMirror documents, so if you’re importing existing HTML with a PHP script it makes sense to convert it to the nodes and marks Bard expects. This guide…
I’m excited to announce the release of Bard Texstyle 2.1 and the brand new Pro edition. Although 2.0 only just came out that was mainly a compatibility release for Statamic 3.4. This is a big release…
A quick reference for the different ways to get a value out of a Statamic entry, and what each one actually gives you back.
A couple of copy and paste snippets for importing entries and taxonomy terms into Statamic in bulk. Just swap in your own data and handles.
Statamic's markdown modifier allows you to parse markdown into HTML. But what if you have markdown from an external source that contains front matter values? The default markdown parser and modifier…
The page variable in Statamic templates contains the current entry, and is the primary way to access entry values in Blade. This works great, but when you’re working on non-page collections you might…
Statamic allows you to alter entry values through the use of modifiers in your templates. However, if you’re applying the same modifications in multiple places or need a modified value outside of a…
Statamic globals are automatically added to all views rendered by Statamic, whether you’re using Antlers or Blade. However, if you have views that are rendered outside of Statamic directly through…