Combining content stored in different sibling folders?

ellis's Avatar

ellis

27 Oct, 2015 11:21 AM

I've set up a report that works nicely with all the pages in the same folder (Documents/proposal-markdown/), and some content in a sub-folder (Documents/proposal-markdown/inclusions). For example, my Documents/proposal-markdown/index.md file includes content from a file called Documents/proposal-markdown/inclusions/address.md file, which contains the postal address.

I now want to set this up so I can have a folder for each new report that still takes content from the inclusions folder

So, for a report to ABC Co :

1. I create a folder called Documents/proposal-markdown/ABC
2. I add pages to that folder, including a Documents/proposal-markdown/ABC/index.md page for that report.

My question:
How do I get the index page in the Documents/proposal-markdown/ABC folder to include the content from the Documents/proposal-markdown/inclusions folder?

I've tried adding this to the metadata of the Documents/proposal-markdown/ABC/index.md file:
----
Transclude Base: ~/Users/ejpratt/Documents/proposal-markdown/

---

and

<<[inclusions/address.md]

in the body of the Documents/proposal-markdown/ABC/index.md file, but it's not displaying the content in the inclusions/address.md file

What am I doing wrong?

(FYI, I'm using OS/X 10.10.5)

  1. Support Staff 1 Posted by Brett on 27 Oct, 2015 02:00 PM

    Brett's Avatar

    Hi Ellis,

    Transclude Base: ~/Users/ejpratt/Documents/proposal-markdown/

    The tilde (~) represents your home folder, so ~/Users/ejprett is redundant. Just use ~/Documents....

    <<[inclusions/address.md]

    A path that doesn't begin with a forward slash indicates it's relative to the location of the index file, so in this case it's looking for proposal-markdown/ABC/inclusions/address.md. To indicate that it should move up a folder, use .., e.g. ../inclusions/address.md, or an full path as you have above.

    Let me know if that helps,

    Brett

  2. 2 Posted by ellis on 27 Oct, 2015 02:10 PM

    ellis's Avatar

    Doh, ../
    Yes, of course.

    That did it.

    Thanks

  3. ellis closed this discussion on 28 Oct, 2015 04:51 PM.

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