Showing 10 of 2,055 results.

Custom Variable Input | Advanced Filtering

…in the Basic Filtering guide, we can supply input to our comment filters: 1 {{ meerkat : responses filter = " user:in(92283631-5e22-4e21-8764-0aad0cf59bfe, 6f2d63ce-e760-4c5b-85ad-7ddbaf7d7ada) " }} 2 3 < ul > 4 {{ comments }} 5 < li > 6 < p > {{...

Prevent Formatting of Specific Files | Formatting

It may be useful to prevent formatting of a specific Antlers template without excluding the file extension entirely. This can be accomplished by adding a special directive to your tempalte's configuration comment. Note: These configuration...

The where:in Filter | The "where" Filters

The where:in accepts an arbitrary comment property to check, and a list of values to check against. The filter will return only those comments whose property value exists in the provided list of values. The following example will return only those...

Laravel Miscellaneous Helper Function: data_set

…name) of the data to set and the $value to be set. It also defines an optional $overwrite parameter (which is set to true by default). If $overwrite is set to true , any existing values for the $key will be replaced. The following code example...

Example Use | Laravel 5.5 String Helper Function: studly

Let's take a look at a few examples to see how this would format a few example strings. The string returned will appear above the function call as a comment. In fact, all of the function calls below will return the string MyWords : 1 use...

Configuration Overview

…ted favicons, as well as other options to change the driver, storage locations, etc., templating.php, : Provides an opportunity to control which Antlers tags and modifiers are available to your project. If you do not plan on modifying this file...

Prevent Formatting of Specific Files | Formatting CLI

It may be useful to prevent formatting of a specific Antlers template without excluding the file extension entirely. This can be accomplished by adding a special directive to your template's configuration comment. Note: These configuration...

Laravel Collection Public API: count

count The count method is a straightforward method and simply returns the total number of items in the collection. The count method returns an integer. 1 <?php 2 3 use Illuminate \ Support \ Collection ; 4 5 // Create a new collection instance. 6...

Author | General Metadata

The author method queues a <meta name="author" content="..."> tag. By default it binds to the $meta_author variable. 1 <?php 2 3 use Stillat \ StatamicSiteEssentials \ Support \ Facades \ Metadata ; 4 5 // Adjusting the returned variable. 6...

Title | General Metadata

The title method queues a <title></title> tag. By default it binds to the $title variable. 1 <?php 2 3 use Stillat \ StatamicSiteEssentials \ Support \ Facades \ Metadata ; 4 5 // Adjusting the returned variable. 6 Metadata :: resolve ( ' title '...