☀ Hey, Automad version 2 is now available as an alpha version.
Read more here!
Try a Demo
♡ Sponsor
Index
Loop
Show All
Blocks
Case
Cheat Sheet
Command Line Interface
Composer
Condition
Configuration
Content
Context
Dashboard
Date
Development
Extension
File
Filelist
Filter
Find
HTML
Headless
Image
Inheritance
Installation
Language
Layout
Loop ✓
Math
Method
Navigation
Object
PHP
Package
Pagelist
Pipe
Preview
Recursion
Regex
SEO
Session
Snippet
Sort
Statement
Strip
Theme
URL
Variable
v2
4
pages found
Variables ⁄
Runtime Variables
— Variables
There are some variables defined by Automad during runtime. The names of those runtime variables are always preceded with a colon as follows: @{ :basename } Runtime variables can be subdivided into two types - context related variables and variables created within control ...
Template Language ⁄
Control Structures
— Template Language
As in other languages, control structures in Automad are statements that dynamically determine the flow of an application or website based on evaluating content or variables. Automad knows four different statements to control the flow of the application: for, foreach, if and ...
Control Structures ⁄
for
— Control Structures
The for loop iterates over a range of numeric values of type integer.
Control Structures ⁄
foreach
— Control Structures
The foreach loop iterates over objects. Depending of the type of the object in use, Automad provides different runtime variables within the code block of the loop to refer to items of the object. The :i variable refers to the index of the current iteration in the loop.
Automad
Getting Started
System
User Guide
Developer Guide
Headless Mode
Discuss
Packages
Live Demo
☀ Version 2