How to make a query with a specific page attribute plus value?

Hi everyone,

I’d like to make a query that gives me all pages that match a certain page attribute + specific value.

For example, I’d like to create a hub page that shows me all the templates I’ve built. To do this, I want to create a query that pulls out all pages that have “Template” as the value for the attribute “Page type::”.

Does anyone know how I can do this?

Thanks,
Tim

There is a way, but its success depends on how you use that attribute and it’s value.

Page type is already a page. All attributes are. If you set the value of that attribute to [[Template]] , so that the value is also a page, you can use the following query:

{{[[query]]: {and: [[Page type]] [[Template]] {not: [[query]]} } }}

1 Like

Beautiful, that works! Thanks.

1 Like