Showing 10 of 1,214 results.

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...

Laravel 5.5 String Helper Function: ascii

…ls (such as HTTP) about how headers, or some values, need to be formatted.The signature of the ascii method is: 1 public static function ascii ( 2 $ value , 3 $ language = ' en ' // Also accepts `bg` or `de` 4 ) ;The ascii method accepts a...

Creating a Statamic Compact Modifier

…just yet. For example, we are creating variables using Antlers front-matter, which can then be referenced by prefixing our variables with view: . Additionally, we are invoking Statamic's foreach tag, and supplying an interesting value for the...

Thoughts on HTML Elements and Blade Components in Forte

My focus this week with Forte has been continuing to work on the HTML tokenizer and parser. I've done enough Blade parsers over the years, where the "Blade" parts are largely a solved problem, and it won't be much work for me to shore up that side...

Handling AJAX Errors | Advanced Reply Forms

…eplyForm . remove () ; 19 } ) ; 20 21 // Get the new comment. 22 var template = $ . tmpl ( $ ( ' #comment-template ' ) . html () , e . submission ) ; 23 24 // Add our rendered comment to the DOM. 25 $ ( ' [data-meerkat-comment=" ' + e ....

se_view Tag

The se_view tag provides a few utilities to help implement more complicated logic within your site's templates.The se_view:rendered tag can be used to check if a view has already been rendered: 1 {{ partial : my / partial / }} 2 3 {{ if { se_view...

Creating the PrettyPaginator Class | Laravel Paginator Pretty URLs

…ur class. Remember we need to override the getUrl($page) function though. So let's add that: 1 <?php 2 3 use Illuminate \ Pagination \ Paginator ; 4 5 class PrettyPaginator extends Paginator { 6 7 /** 8 * Get a URL for a given page number. 9 * 10...

Filter Search