Search

Showing 7 of 2,041 result(s)

/blog/2022/05/29/creating-dynamic-css-class-names-with-statamic#content-adding-the-yield-and-section-tags

Now that we have our collection loop, we can set things up to construct our dynamic CSS classes using the yield and section features. The yield tag will let us define a named section of our template that we can set the contents of later. The...

/blog/2023/09/03/creating-a-hybrid-cache-system-for-statamic-part-three

To take a break from the more involved experimentation and code changes, we will work on improving how our cache system manages headers. Our cache doesn't do anything explicit with the headers, including the Date header. While we could get away...

/blog/2018/02/20/laravel-5-string-translation-public-api#content-example-use-3

The following code examples will demonstrate the usage of the has method. The results of method call will appear above the method call as a comment. Line 11 in the above code examples could possible seem confusing at first. The method call returns...

/meerkat/configuration-overview

Configuration is currently handled via PHP configuration values. Once Meerkat has been installed in your Statamic site, a meerkat directory will created within your site's config directory with all the relevant configuration files after the site...

/blog/2021/02/15/implementing-a-customer-dsl-parser-in-php#content-implementing-string-escape-sequences

In this section we will work on implementing our string escape sequences. We will start by adjusting our input.txt to have the following content: where(name, =, 'Singe quote: \'') The intended output for the final input value is Single quote: ' ....

/blog/2021/02/20/integrating-laravel-spark-and-statamic-3#content-configuring-stripe-and-spark-web-hooks

Do not share your own API key values on the Internet like this. These are just example values! In a previous step, we started a terminal window and shared our development site using Expose. Locate the Expose-URL (or equivalent) now so we can use...

/blog/2023/09/03/creating-a-hybrid-cache-system-for-statamic

This article series covers implementing a custom cache system for Statamic, which provides near-static cache response times while preserving some of the text-editor workflows that make Statamic great. The cache system we will build together may...