Forum Discussion
DavidWexelblat
Jun 02, 2023Brass Contributor
Any way to exclude Templates folder from Highlighted Content Web Part?
I am trying to figure out a way to exclude pages under "Site Pages/Templates" from the Highlighted Content Web Part (Source = "The page library on this site"). Using a static metadata column doesn't ...
Jun 07, 2023
Yeah Caml query is super old school and shouldn't be used. That's why I said KQL 🙂 KQL query is a lot easier and more modern, just say path, type and what you need to exclude 🙂
DavidWexelblat
Jun 08, 2023Brass Contributor
Whether the query is KQL or CAML depends on which source chosen for the HCWP. Since I'm looking at "The page library on this site", CAML is what it takes. I can play around with one of the larger sources and KQL, but my base issue still holds - my collaborators have no chance of being able to deal with any query language, and it just shouldn't be needed for this use case.