File Transclusion, Sandboxing, and relative paths
When I include a file from another directory using the {{ }}
syntax, it works fine if I include the full path to the file (i.e.Composer asks for permission to open the file and successfully includes it). If the file is referenced with a relative path, however, it doesn't ask for permission and doesn't include the file.
For now, I can work around this by replacing the relative path with a full path, giving permission to access the file, and then replacing the full path with the relative path again. As long as it has permission, the relative path works, it just never asks for permission.
Thanks,
Rob
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by rwcope2 on 12 Sep, 2017 03:13 PM
Sorry, forgot to mention I'm use Multimarkdown Composer 4.0 Beta (44).
Support Staff 2 Posted by Fletcher on 12 Sep, 2017 04:30 PM
Can you send an example? Relative paths work fine for me.
3 Posted by rwcope2 on 13 Sep, 2017 01:11 PM
You're right, when I create a simple test case it works OK as well.
Attached is a zip file containing the files I am using. It fails to read
{{../Minutes%20Header.md}}
referenced from the fileXXX Draft Minutes.mmd
. FWIW, the root folder has a~
in the name, but it fails for me even without that.Thanks,
Rob
Support Staff 4 Posted by Fletcher on 13 Sep, 2017 01:18 PM
Is the file really named "foo%20bar"? Or is it "foo bar"?
Sent from my iPhone
5 Posted by rwcope2 on 13 Sep, 2017 01:49 PM
It's "foo bar". I usually drag and drop files to include them and the paths are automatically URL encoded, so I leave them that way.
Support Staff 6 Posted by Fletcher on 13 Sep, 2017 01:51 PM
Drag and drop assumes images (which require URLs), since that is much
more common than transclusion.
Transclusion requires file names, since it is not part of HTML that
requires URL encoding.
Fletcher closed this discussion on 13 Sep, 2017 01:53 PM.