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 →

[SOLVED] Renaming files on upload/referencing image uploaded in Twig

Started by P. Fighter 9 years ago · 0 replies · 892 views
9 years ago

Is there a way to rename files uploaded via the admin panel? - Preferably to something like the page title or perhaps something hardcoded.

However, what I really want to do is to upload an image via the admin panel and then have it show up in the page without renaming any files. Any way to do this without knowing the file name?

EDIT

Figured it out: https://learn.getgrav.org/cookbook/twig-recipes#displaying-an-image-uploaded-in-a-file-field

last edited 03/20/18 by P. Fighter

Suggested topics

Topic Participants Replies Views Activity
General · by themetman, 24 hours ago
2 40 17 hours ago
General · by Hanns Mattes, 1 week ago
0 121 1 week ago
General · by Karmalakas, 1 week ago
2 185 1 week ago
General · by Hanns Mattes, 3 weeks ago
0 235 3 weeks ago
General · by Dima, 4 weeks ago
1 211 4 weeks ago