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

flatten Modifier

Flattens a multi-dimensional array (a Grid or Replicator field for example) into a single dimension.

ingredients:
spices: [garlic, cumin, ginger, turmeric, paprika, curry powder]
vegetables: [tomatoes, onion]
meat: [chicken]
{{ ingredients | flatten }}
ingredients:
- garlic
- cumin
- ginger
- turmeric
- paprika
- curry powder
- tomatoes
- onion
- chicken
Docs feedback

Submit improvements, related content, or suggestions through Github.

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