Showing 7 of 587 result(s)
Now that we have our custom server error page, we need a good way to test it. To do this, we will create a custom Statamic Antlers tag that we can add to our templates to force a server error whenever we want. Statamic's please command line...
Our parser can now understand our simple filter language, and produces the output that we would expect. However, we are able to say it produces the output we expect because we know exactly what the input to the program should be; new users of our...
Like in the previous article, we will create a custom Antlers tag that will throw an exception whenever it is encountered. We will use this tag to be able to easily test our custom error page later. Statamic's please command line utility will be...
Now that we've modified our site's error handler, we will create a custom view composer that will allow us to provide additional details to our site's error template. To do this, we will simply update our site's application service provider...
Instead of building up a complicated data storage system, we are going to take advantage of the incredible flexibility that Statamic's blueprints and fieldsets provide. Our data storage format will be created using a fieldset, which will make it...
We are almost done with our content reactions system, but still need to implement the existing reaction count so that visitors can see the number of previously submitted reactions. We will implement this using a custom tag. We are using a custom...
A common design pattern when building Statamic sites is to use fieldsets to create reusable fields across different collections, forms, or pages. Additionally, it is also not uncommon to see specific partials created to display these fieldsets....