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 →

News and gallery

theme

Started by marc 7 years ago · 2 replies · 856 views
7 years ago

It would help to know some highlights of your failed attempts.

7 years ago

I just did something similar with metadata for media files. As I learned today, you can edit them with this plugin from the Admin interface. Rest is just this bit of code, wherever you need it:

TWIG
{% for image in page.media.images  %}
  <div class="item">
    <a href="{{ image.url }}" data-lightbox="{{ page.title }}" data-title="{{ page.title }}" class="{{ page.title }}">{{ image.resize(188, 188).html(page.title,'','shadow') }}</a>
  </div>
{% endfor %}

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by themetman, 6 days ago
1 103 3 days ago
Themes & Styling · by AH, 3 weeks ago
1 223 3 days ago
Themes & Styling · by Bruno, 4 years ago
6 1386 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