Tags

Tags are Antlers expressions giving 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

Fetches and filters entries in one or more collections.

Collection:Count

Fetches the number of entries in a collection

Collection:Next

Fetches the next entries in order.

Collection:Previous

Fetches the previous entries in order.

Dump

Debugs variables in current view context

Foreach

Loops through keys in a named key/value array

Form

Handles the frontend side of your forms.

Form:Create

Manages markup and success/error handling for forms.

Form:Errors

Provides access to form errors.

Form:Set

Wraps other form tags to group them by the same formset.

Form:Submission

Accesses the data from a successful submission.

Form:Submissions

Fetches data from form submissions.

Form:Success

This is how you check if a form was successful outside of a form:create tag.

Get Files

Retrieves and filters local files

Get_Content

Fetches content by URL or ID

Glide

Manipulates images on the fly

Glide:Batch

Manipulates a whole batch of <img> tags

Increment

Creates incrementing indexes inside loops

Link

Generates URLs

Locales

Create links to localized content.

Loop

Loop a specified number of times

Markdown

Transforms inline Markdown written in your template.

Markdown:Indent

Transforms inline Markdown while ignoring whitespace

Mix

Returns the path to a versioned Mix file

Nav

Creates site navigations.

Nav:Breadcrumbs

Display breadcrumb-style navigation links to your current page.

OAuth

Generate OAuth login URLs.

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

Route

Generate URLs to your named routes

Search

Performs searches and displays matching results

Section

Extracts markup to be rendered elsewhere with yield.

Session

Get, set, and forget data in your user's session.

Session:Dump

Peek into the user session for debugging purposes.

Session:Flash

Store data for a single request.

Session:Flush

Clears the entire user session.

Session:Forget

Remove data from the user session.

Session:Set

Store and persist data in the user session.

SVG

Renders inline SVGs

Switch

Loops a given set of values repeatedly

Taxonomy

Fetches and filters terms in one or more taxonomies.

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:Forgot_Password_Form

Creates a "Forgot Password" form

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

Creates user login forms

User:Logout

Logs a user out and redirects them elsewhere

User:Logout_URL

Generates a user logout URL

User:Profile

Fetches user data.

User:Register_Form

Creates user registration forms

User:Reset_Password_Form

Creates a "Create a New Password" form

Yield

Displays content extracted elsewhere by the section tag

Betterify this page on Github!