I don't know how to do… I want that links contain the 2 parent folders (i.e. : instead of "cat", "10. mammal/feline/car"

First, search the help docs and this forum. Maybe your question has been answered! The debugging steps can help, too. Still stuck? Delete this line and proceed.

What I’m trying to do

About links with copy folders

I tried Copilot but it failed…

So you always want just “2 parent folders”?

So for example, if the full path was “/animals/mammal/feline/cat” you would want the link to show just “mammal/feline/cat”?

Or do you want it to show ALL the parent folders? So if it had 3 or 4 folders, it would show all 3 or 4?

You haven’t given us very much information about what you want. And I’m not sure why you tagged this post as “templater”. Is this a Templater question? Or a basic Obsidian links question?

If you want the full path in links, you can set Settings → Files and links → New link format → “Path from vault folder”.

If you just want to change the display of your links, you can use Aliases.

`[[NOTE TITLE|Custom Title Here]]`

For example:

`[[cat|10. mammal/feline/cat]]`

Will display like this:

If this is actually supposed to be a “templater” question, I don’t know how to do that.

Thank you for your help. I’ll try your proposal.