Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

For a software dev like me who has no idea how to create a cute hand-drawn dashed line, this course just 100% works.

— Ira Zayats, Developer

Session:Flash Tag

Flash data is session data that is only kept for a single request. It is most often used for success/failure messages that automatically disappear after a page refresh.

Example

{{ session:flash message="You did it!" }}

The next (and only next) request will then have that variable available.

{{ session:message }} // You did it!

Multiple Variables

You can set multiple variables at once and reference interpolated data (references to variables).

{{ session:flash success="true" :clicked="order_button" }}

Setting Array Data

Array data can be set with dot notation.

{{ session:flash likes.snow_cones="true" likes.italian_ice="false" }}
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →
Hello there! Are you looking for the Statamic v2 documentation?