Search

Showing 7 of 1,975 result(s)

/blog/2023/04/10/creating-a-custom-statamic-layout-tag#content-accessing-the-view-instance

We have determined we can probably change the template's layout by calling the layout method on the Statamic\View\View instance. But how do we gain access to this View instance in order to actually do this? Through more source diving, we can see...

/blog/2018/04/21/laravel-5-macros-framework-classes-with-dynamic-methods-available

The following table will list every framework class or trait that implements the __call method directly. The table will also indicate if the class or trait supports macros even though it implements __call . Please note that the following table...

/blog/2016/12/07/laravel-artisan-custom-styles-custom-progress-bar-styles#content-overriding-placeholders-and-formats

You can customize or override format definitions and placeholders by using the setFormatDefinition($name, $format) and setPlaceholderFormatterDefinition($name, callable $callable) methods, respectively. These methods can be useful when dealing you...

/blog/2023/09/03/creating-a-hybrid-cache-system-for-statamic#content-what-were-going-to-build

The goal of our custom caching system will be to get as close to the performance of the static HTML cache as we reasonably can without having to rely on Control Panel events for most cache invalidation, as well as support a few additional cache...

/blog/2021/02/15/implementing-a-customer-dsl-parser-in-php#content-describing-our-language-input

Before writing any more code, we need to take a moment to understand exactly what it is we are trying to analyze. Let's consider the following example input: where(name, =, 'Alice\'s name')|where(author, =, '\\')|is:published(true) This input...

/blog/2021/12/12/creating-a-content-reaction-system-with-statamic-3-and-antlers#content-building-the-reactions-widget

…icons . The changes we will make next will create a "dropdown" menu using Alpine.js and a number of Tailwind CSS classes. We will move our buttons to only be displayed when a user clicks on the purple smiley face: Refreshing our blog article's...

/blog/2023/09/03/creating-a-hybrid-cache-system-for-statamic-part-five#content-modifying-statamic-tags-to-help-populate-namespaces-and-labels

…s 19 and 23 and retrieve the unique collection handles. Once we have the unique handles, we use the string collection as the namespace and each collection's handle as the cache label. After manually deleting any existing cache files and visiting...