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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Download of .pgn files

Started by Taylor Ren 6 years ago · 1 replies · 485 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 Thomas, 1 week ago
2 57 14 hours ago
Support · by Anna, 3 days ago
2 65 17 hours ago
Support · by Justin Young, 18 hours ago
1 33 18 hours ago
Support · by Duc , 1 week ago
2 68 5 days ago
Support · by Colin Hume, 1 week ago
2 60 6 days ago