Replies: 1 comment 2 replies
|
@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 The fix: use a template instead of inheritable attributes on
This works because template attribute inheritance is a runtime resolution mechanism — when Trilium reads a note's attributes, it dynamically walks the note's Alternatively, you can simply remove the inheritable flag from the attributes on your To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |



@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
__getInheritableAttributesmethod walks the full parent chain recursively with no depth limit [1].The fix: use a template instead of inheritable attributes on
Projects.Project Template) that owns theStatelabel (and any other attributes you want) as non-inheritable attributes.Projects, add a~templaterelation pointing to that template note.This works because template attribute inheritance is a runtime resolution mechanism — when Trilium rea…