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 · 566 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 Anna, 19 hours ago
1 57 13 hours ago
Support · by gtx, 1 week ago
4 230 2 days ago
Support · by Paul Hodges, 2 weeks ago
13 277 5 days ago
Support · by Anna, 3 weeks ago
9 336 1 week ago
Support · by TomW, 2 weeks ago
4 190 2 weeks ago