This method may help you if: You use Linked References to โqueryโ the current page but you would like more powerful filters. You want to organize pages hierarchically and you found that namespaces are not meant for that. Specifically you want a page to be in multiple hierarchies. The idea is t...
![The contextual sidebar: query current page and organize pages in indexes](https://lemmy.ml/pictrs/image/37bdc467-0526-4628-b605-8834936a717c.png?format=webp&thumbnail=256)
You are welcome!
Does this work in the right sidebar for you? For me it does:
{{query (and <%current page%> (todo todo doing waiting))}}
P.S. delete the word "doing" if you don't want to see the DOING tasks.
Assuming you tag the top of an index as [[index]]:
-
Current page in indexes:
{{query (and [[index]] <%current page%> (not (page <%current page%>)))}}
-
Indexes present in the current page:
{{query (and [[index]] (page <%current page%>))}}
-
Notes about the current page:
{{query (and [[Note]] <%current page%>)}}
-
Current page as "author" of something:
{{query (property author <%current page%>)}}
Queries in the sidebar can refer to the current page!
Attached: 1 image I realized only recently that when in #Logseq you place queries in the right sidebar, the current-page variable refers to the current page in the main view!! So I created a page called "Current page" and placed there some useful queries, like the one that look for mention of the ...
![Alex ๐ฎ๐น ๐ ๐ท๐บ (@alexl@pkm.social)](https://lemmy.ml/pictrs/image/fd4feae6-0f84-4e37-bd4b-c942ee229857.jpeg?format=webp&thumbnail=256)
Imagine the pages as nodes organized on a circle: The [[references]] are links (arrows with a direction). This is a graph/network and it can be displayed in Graph View: Each page has a tree of blocks: The [[references]] are links that actually start from a block and target a page. Ima...