Skip to content
● Critical PHP security fixes are out: update PHP on your Grav sites. What to do →

Download of .pgn files

Started by Taylor Ren 6 years ago · 1 replies · 715 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 webmasterodp, 2 weeks ago
4 250 2 weeks ago
Support · by nwhitfield, 2 weeks ago
2 214 2 weeks ago
Support · by stell, 4 weeks ago
5 458 3 weeks ago
Support · by gravinator, 2 months ago
5 638 3 weeks ago
Support · by Gravver, 1 month ago
6 430 4 weeks ago