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.

Archive

Can't make link to local file work

Started by Muut Archive 12 years ago · 1 replies · 239 views
12 years ago

I have a file in the folder for a blog entry. So I have a blog page folder News containing a folder Meeting containing an item.md file and some .docx file. When I reference the docx file i.e. [file](file.docx) I get Not Found with an URL consisting of the website base URL followed by /News/Meeting/file.docx, i.e. the path without user/pages/ or number prefixes.

Obviously, when I add /user/pages into the URL and 01. before News the file is indeed found.
What am I doing wrong?

(Until now I've put all files into a global folder (images). That works fine, but isn't maintainable.)

12 years ago

Support for generic page file handling (similar to how images are handled) is not complete yet. I suggest using the global folder approach for now until we can get this functionality added.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1296 9 years ago
Archive · by Muut Archive, 9 years ago
2 890 9 years ago
Archive · by Muut Archive, 9 years ago
2 4019 9 years ago
Archive · by Muut Archive, 9 years ago
1 2894 9 years ago
Archive · by Muut Archive, 9 years ago
3 1078 9 years ago