Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Getting Image Alt

Started by Dr Zoidberg 9 years ago · 1 replies · 1034 views
9 years ago

On my theme im getting the first image like this

TWIG
{% set image = p.media.images|first.cropResize(588, 460) %}
<img src="{{ image.url }}" width="288" height="160" alt=""/>

is there any way to get the title of image? Something like {{ image.title }}

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by themetman, 6 days ago
1 104 3 days ago
Themes & Styling · by AH, 3 weeks ago
1 224 3 days ago
Themes & Styling · by Bruno, 4 years ago
6 1388 3 days ago
Themes & Styling · by TomW, 3 weeks ago
2 227 5 days ago
Themes & Styling · by FrViPofm, 2 months ago
4 687 2 months ago