Skip to content

Board view query/display only child notes within the same levels #21

Answered by mabeyj
nicollasricas asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @nicollasricas, I think this can be done by adding an ancestor condition to #query.

From Trilium's wiki:

In your first screenshot, you have #query="#todoItem" which would return all notes in your entire tree (across all projects) having the #todoItem label.

#query="#todoItem and note.ancestors.title = 'Project 1'" would return all notes underneath "Project 1" having #todoItem.

Since the Project notes are the render notes that render the views, there is a special variable $title that is replaced with the render note's title. Then you wouldn't need to hardcode the project name in the query: #query="#todoItem and note.ancestors.title = $title" (This also allows you to create a "project…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nicollasricas
Comment options

Answer selected by nicollasricas
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