☀ Hey, Automad version 2 is now available as an alpha version.
Read more here!
Try a Demo
♡ Sponsor
Index
Show All
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
100
pages found
Pipe ⁄
findFirstImage
— Pipe
Finds the first image tag in a rendered HTML string and returns the src attribute. This function can be used to extract the first image form a block variable to be used separately in any other place like a teaser section of a page card in a pagelist. To get the first image of a ...
Pipe ⁄
findFirstParagraph
— Pipe
Finds the first paragraph tag in a rendered HTML string and returns its content. This function can be used to extract the first text block form a block variable to be used separately as a teaser text for the page in a pagelist. To get the first paragraph of a Markdown variable, ...
Pipe ⁄
floor
— Pipe
Returns the next lowest integer value by rounding down a variable if necessary. This function doesn't expect any parameters.
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.
Control Structures ⁄
if
— Control Structures
The if statement allows for conditional processing of code blocks. In case the given expression is evaluated to false, an optional else block is processed instead.
Toolbox ⁄
img
— Toolbox
Creates an image tag for the first image file matching the specified glob pattern. The image can also be cropped by defining a maximum width and height.
Getting Started ⁄
Local Installation
— Getting Started
You might want to install Automad first on your local Mac or Windows computer to get familiar with the system or start developing your site. Like any other CMS, Automad requires a webserver to be running. The easiest way to achive this, is to install a complete webserver package ...
←
→
Automad
Getting Started
System
User Guide
Developer Guide
Headless Mode
Discuss
Packages
Live Demo
☀ Version 2