ltrim

The ltrim filter trims the beginning of a string for whitespace or a specific character.

This filter is unique to Aptuitiv. It is not part of the core Twig functionality.
{{ string|ltrim }}

{# Remove a starting "/" at the beginning of the string #}
{{ string|ltrim('/') }}

Arguments

The ltrim filter has the following signature.

ltrim(characters)
Parameter Description
This documentation is only for Aptuitiv CMS. Learn more.
Get Started With Aptuitiv