Promote an inverse relation? #3609
Replies: 4 comments 1 reply
-
Hi, if you want to have the attribute promoted also on the target, the promoted definition needs to be on the target note as well. |
Beta Was this translation helpful? Give feedback.
-
Thank you!
…________________________________
From: zadam ***@***.***>
Sent: Tuesday, February 14, 2023 12:48 AM
To: zadam/trilium ***@***.***>
Cc: delvewell ***@***.***>; Author ***@***.***>
Subject: Re: [zadam/trilium] Promote an inverse relation? (Discussion #3609)
Hi, if you want to have the attribute promoted also on the target, the promoted definition needs to be on the target note as well.
—
Reply to this email directly, view it on GitHub<#3609 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A4FSIHKMSRGWLJ7OTGMU5MTWXK24JANCNFSM6AAAAAAU2P5DZM>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@zadam , I defined the relation #relation:HasResource="multi,inverse=ResourceOf" on a single note and the proper backlinks were generated. The relation "HasResource" is then offered as a tooltip on other notes, but the backlinks are not generated for those other notes. Is there a way to define the relation once and have it behave in an identical way for all notes that employ it? |
Beta Was this translation helpful? Give feedback.
-
Thanks. I got a template working!
…________________________________
From: zadam ***@***.***>
Sent: Wednesday, February 15, 2023 3:46 PM
To: zadam/trilium ***@***.***>
Cc: delvewell ***@***.***>; Author ***@***.***>
Subject: Re: [zadam/trilium] Promote an inverse relation? (Discussion #3609)
#relation:HasResource="multi,inverse=ResourceOf" has to be defined on the note as well for the relation definition to take effect.
Since doing that manually would be tiresome, some form of attribute inheritance<https://github.com/zadam/trilium/wiki/Attribute_Inheritance> is used - most typically template.
—
Reply to this email directly, view it on GitHub<#3609 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A4FSIHIRVWOZ4BYWTGKBSVTWXTM37ANCNFSM6AAAAAAU2P5DZM>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi folks,
I've promoted a relation and would like to promote its inverse as well. When I go to the target note and look at owned attributes, I see the inverse relation but promoting is not an option.
Thanks,
-david
Beta Was this translation helpful? Give feedback.
All reactions