Search

Showing 7 of 587 result(s)

/blog/2021/09/12/creating-a-customized-statamic-3-500-error-page#content-creating-a-dynamic-antlers-error-page

Now that we've updated our site's error handler and have created a custom view composer, it is now time to write some Antlers code that will change what message is displayed to the visitor depending on the type of error that was thrown. Let's...

/blog/2021/11/07/creating-a-statamic-compact-modifier#content-creating-our-modifier

In this section we will work on getting our custom modifier created, and start on it's implementation. To get started, we will use Statamic's please utility to help us scaffold the code. From the root of your project, issue the following command...

/blog/2021/11/07/using-modifiers-in-antlers-dynamic-bindings

Throughout this article we will be taking a closer look at passing variables to parameters and modifiers by using dynamic binding . Dynamic binding is a technique to supply a value to a tag or modifier by referencing it's variable name. For...

/blog/2021/12/05/creating-stacked-content-layouts-with-statamic-and-antlers#content-using-array-plucking

Array plucking is an Antlers technique to retrieve a specific entry from a list of items. At its most basic level, it is simply a way to access elements in an array be their index. In the following example, we would have access to the first...

/blog/2021/12/12/creating-a-content-reaction-system-with-statamic-3-and-antlers

Throughout this article we will explore creating a system that will allow site visitors to leave "reactions" on Statamic 3 entries. Once complete, users will be able to add the following reactions to entries: 👍 Like, 😍 Love, 😯 Surprised, 🤔...

/blog/2022/04/18/antlers-conditional-parameters

In this article we are going to take a look at a way to conditionally supply a parameter to an Antlers tag using a new feature called void parameters . Void parameters allow you to conditionally remove a parameter completely, instead of simply...

/blog/2022/11/01/a-beginners-guide-to-antlers-arrays-and-loops#content-accessing-array-elements-by-index

We can access array data directly by its index in many different ways. The first and most recognizable is by using the square bracket syntax. We will use the sample data in Example 1.20 for our discussions: Example 1.20 If we already know the...