Deep breath...
I have a SharePoint site that is used to manage various developments within our organisation. Each project has a dedicated page and a dedicated document library. For simplicity, the page title and document library name are the same. To ensure a degree of consistency in the structure of each page, I have created a page template that is used for all pages. The document library is created using power automate and always has a number of sub-folders:
\Documentation
\Installers
\Resources
\User Guides
All fine, all working.
What I want to do now is to update the page template so that it uses Highlighted Content web-parts to display the contents of these sub-folders. However because each page has its own document library these HCWP would need to be updated each time a page was created from the template. Given that the page title and document library as named the same, I'm sure that there must be a way to do this dynamically (using KQL??)
I've got as far as this:
DocumentLink:"https://XXXX.sharepoint.com/sites/YYYY/EXPOS/Documentation/" AND FileType:
And it works but it is not dynamic. I need something like this:
DocumentLink:"https://XXXX.sharepoint.com/sites/YYYY/{Page.Title}/Documentation/*" AND FileType:*
Can anyone help me please.
Many thanks in advance