Skip to content
Discussion options

You must be logged in to vote

@ZangXincz great question! The behavior you're seeing is by design — when an attribute is marked inheritable on a parent note, it propagates to all descendants, not just direct children. The __getInheritableAttributes method walks the full parent chain recursively with no depth limit [1].

The fix: use a template instead of inheritable attributes on Projects.

  1. Create a template note (e.g. Project Template) that owns the State label (and any other attributes you want) as non-inheritable attributes.
  2. On each direct child of Projects, add a ~template relation pointing to that template note.

This works because template attribute inheritance is a runtime resolution mechanism — when Trilium rea…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@eliandoran
Comment options

@ZangXincz
Comment options

Answer selected by ZangXincz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants