Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Download of .pgn files

Started by Taylor Ren 6 years ago · 1 replies · 662 views
6 years ago

I uploaded a few .pgn (Chess notation) into my GRAV backed wiki site: http://rsywx.com/game_changer/zero_zero_zero

But when I click the link at the bottom and try to download the pgn file, GRAV throws me a 404 error.

I modified the system/config/media.yaml and inserted the below lines at the end (and the admin backend shows this entry as desired:

YAML
  pgn:
    type: file
    thumb: media/thumb-json.png
    mime: text/plain

But to no avail.

Your help will be much appreciated.

6 years ago

Hi

in twig file add the path of the file
depending ont the 'destination' in blueprint file

[code]
{{ url('theme://path_of_the_file') }}
[/code]

Suggested topics

Topic Participants Replies Views Activity
Support · by stell, 7 days ago
4 235 5 days ago
Support · by gravinator, 1 month ago
4 441 5 days ago
Support · by Gravver, 2 weeks ago
6 278 1 week ago
Support · by Marcel, 4 weeks ago
2 337 1 week ago
Support · by blu3prince, 2 weeks ago
1 252 2 weeks ago