I’m creating a template that includes a simple query.
In this query I want to find projects that have as a parent (property) the current page.
Currently, every time I use the template, I have to remember to update the reference to the current page, but is there a way to have a template replace a value with the current page automatically?
{{current_page}} isn’t valid syntax. The syntax for dynamic variables is: <% current week %> (anything between <% and %> gets interpreted by the natural language processor in Logseq).
Also, it seems like you’re trying to mix simple queries with datalog (:type, :parent) which isn’t supported.See this query lesson (and the other lessons in the series) on how to properly write simple queries using dynamic variables.