Tags

Tags are Antlers expressions that give you the ability to fetch, filter, and display content, enhance and simplify your markup, build forms, and build dynamic functionality.

Tags with Updated Docs

Type Description
404 (Not Found)

Triggers a 404 response

Asset

Retrieves an Asset by its URL

Assets

Fetches Assets from a container

Cache

Caches a view chunk for performance gains

Collection:Count

Fetches the number of entries in a collection

Dump

Debugs variables in current view context

Foreach

Loops through keys in a named key/value array

Get Files

Retrieves and filters local files

Get_Content

Fetches content by URL

Glide

Manipulates images on the fly

Glide:Batch

Manipulates a whole batch of <img> tags

Increment

Creates incrementing indexes inside loops

Link

Generates URLs

Markdown

Transforms inline Markdown written in your view files

Markdown:Indent

Transforms inline Markdown while ignoring whitespace

Mix

Returns the path to a versioned Mix file

Obfuscate

Obfuscates content to foil screen-scraping nightmare bots from hell

Parent

Fetches data from a parent entry

Partial

Renders a partial view

Redirect

Redirects visitor to another URL

Routes

Accesses data defined in frontend routes

Search

Performs searches and displays matching results

Section

Extracts markup to be rendered elsewhere with yield.

SVG

Renders inline SVGs

Switch

Loops a given set of values repeatedly

Translate

Retrieve a string from a language file in the current locale. It is the equivalent of the trans and trans_choice methods provided by Laravel.

User:Can

Checks if a user has a specific permission

User:In

Checks if a user is in a specific user group

User:Is

Checks if a user has a specific role

User:Login_Form

For creating a user login form

User:Logout

Logs a user out and redirects them elsewhere

User:Logout_URL

Generates a user logout URL

User:Register_Form

For creating user registration forms

Yield

Displays content extracted elsewhere by the section tag

Everything Else

Type Description
Collection

Grab and filter the entries in a specified Collection.

Collection:Next
Collection:Previous
Form
Form:Create
Form:Errors

Display form errors.

Form:Formset
Form:Submission
Form:Submissions
Form:Success
Locales
Nav

Create site navigation based off your Pages structure.

Nav:Breadcrumbs

Display breadcrumb-style navigation links to your current page.

Nav:Exists
OAuth
Taxonomy
User:Forgot_Password_Form

For creating a user forgot Password (aka set new password) form

User:Profile

Fetches user data

User:Reset_Password_Form

For creating a user password reset form

Betterify this page on Github!