Transclusion Not working as expected when linking outside of the group

It’s currently the way it works but a future version might improve this.

BTW: You could also use replication to make this more flexible if your transclusions only use the name, e.g. replicate the items required by a document to the same group.

If document A is located in group 1 which is located in group 2, then the absolute path would be /2/1/A.

Are you also using Obsidian?

Yes, I am using Obsidian to structure my ideas.
But, I want to work from a single platform, and DT have all the needs. I am just trying to adapt.

Hi,
I didn’t understand the absolute path explanation :frowning:

Example :
I have “File1” under “group1” and “File2” under “Group2”
I want to create Transclusion link within “File1” pointing to “File2”

What I need to put between brackets (on “File1”)?
![[ ??? ]]

But where are group 1 and 2 relative to the Markdown document’s location?

They could be anywhere on that Database.
I just want to see an example, because I am not able to make it happen (absolute path on a Transclusion link)

I have a database called Diaries. I create a new markdown record in a group called Temp (the path to which is /Temp ). I then create a transclusion as follows:

{{/Diary entries/2000-2009/2000/Thursday 13 January 2000}}

and that works perfectly for me to show that item in the new record.

Edit:…when viewed in rendered view, of course.

Stephen

1 Like

Great, thx my friend Stephen.
Then, the absolute path is not on the finder side, it’s what we are seeing in DT view :+1:
Now, I can move my transclusion links (example)
from :
{{x-devonthink-item://74B72840-1F0E-4537-BDE6-F89A21830CE7}}
to :
{{/Cloud/CACF-Benefit}}
Its visually more clear.


Note: After testing, when we need to create a placeholder transclusion links, we need to add the file type, in this case {{/Cloud/CACF-Benefit.md}}.
Without the file extention, it will not work after we create the file “CACF-Benefit”.
But, if the target file already exist when creating the transclusion links, then the file extention is not needed. Perhaps, it was intentionally done by DT Dev team.

Thank you again my friend Stephen :pray:

This Script: Copy for Markdown transclusion might be useful.

1 Like

Since version 3.8 you can also just drag & drop Markdown documents and images while pressing the Ctrl modifier key to insert a transclusion. Depending on the location of both documents either a path or an item link is used.

Likewise drag & drop while pressing Cmd-Alt modifier keys inserts cross-links.

1 Like

The next release will also support transclusions using just the name (with/without extension) as long as it’s unique.

1 Like

This is a great News :ok_hand:
Thx Cgrunenberg

I tested them, they are working as expected, thx Cgrunenberg :pray:


I noticed something that perhaps need your attention.
In the bellow example :

I am testing the two syntax for transclusions links. They are working fine.

But, if we need to change the other wikilinks in the global text for item links, we will use :
Tools > Item Links > Convert Wikilinks to item links
That work fine.
But, it will destroy the transclusions link with {{ }} syntax, like shown bellow :

Transclusions shouldn’t be updated at all, I’ll check this. Thanks!

1 Like

And fixed.

1 Like

Hi there - I excitedly downloaded DEVONthink 3.8.1 today after I saw the following in the release notes:

Markdown transclusions support references using file names without the extension as long as the name is unique.

This works now (thanks! :tada:), but admittedly still not as I expect due to two subtle annoyances:

  • I still have to include the file extension to get transclusion to work
  • the wiki link isn’t clickable from the Source window like other wiki links are.

Here’s a quick screenshot to illustrate:

More info about my setup, in case it’s relevant:

I’m using DEVONthink with Obsidian, by indexing my Obsidian vault with DT. Most of my files are in two Groups (call them A and B). I’m trying to use the ![] Obsidian syntax to transclude a document that resides in Group B into a document which is in Group A.

All of my documents have a unique file name, as I use a datetime prefix along with a file name (confirmed this by using Go > To Document… by the filename and only a single result appears).

How about a screencap of the filing system where these files are located in DEVONthink?

Sure thing:

the underlying directory structure I’m indexing against looks like:

obsidian-vault/
  - pages/
    - 220205 test in Group A.md
  - journals/
    - 220205 test in Group B.md

and then my DEVONthink directory structure:

commonplace (Database)/
  - pages (entire directory indexed)/
    - 220205 test in Group A.md
  - journals (entire directory indexed)/
    - 220205 test in Group B.md

Thanks for the bug report, the next release will fix this. Adding the extension to the transclusion should fix this in the meantime.

1 Like

Great, thanks!

(After checking the forums since I came across the same problems. Obsidian Journaler here as well…)