Syntax
Last updated
Was this helpful?
Last updated
Was this helpful?
The Elements CMS gives you full control over how your content is displayed by supporting the templating language — a fast, secure, and flexible engine widely used in modern content systems.
With Twig, you can dynamically output content, apply filters, and build custom logic directly into your website.
item.title
item.featured
item.excerpt
item.datepublished
currentPage
totalPages
totalItems
itemsPerPage
hasPreviousPage
hasNextPage
previousPageUrl
nextPageUrl
For example, if you need to ensure your title is uppercased you could append a pipe and upper text to the item.title tag, like this:
Outputs: Hello world!
Outputs: HELLO WORLD!