Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

Download of .pgn files

Started by Taylor Ren 6 years ago · 1 replies · 587 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 Paul Hodges, 4 weeks ago
19 483 5 days ago
Support · by Lauw, 7 days ago
2 99 6 days ago
Support · by Anna, 3 weeks ago
4 426 1 week ago
Support · by gtx, 4 weeks ago
4 377 3 weeks ago
Support · by Anna, 1 month ago
9 484 3 weeks ago