The following GraphQL
query returns items based on the Page template:
search(keyword: "Dream",
first: 10,
language: "en",
fieldsEqual: [{name:"_templatename", value:"Page" }]
) {
results {
items {
name
id
language
item {
url
}
}
}
}
}
ATM, Page is the only page template in the solution so the query works fine. There is a need to introduce new (numerous) page types like Product Page
, FAQ
, Organization
inheriting Page
(mainly for the content editor usability to assign proper insert options).
How to extend the query to cover all the pages inheriting Page template?