Using page list filterbypath to filter results from multiple paths

Permalink
Hello, I am creating a filtering system for a website using a pagelist and a custom made block.

The structure is quite complex, with four levels of structure to make things a little clearer this is the structure of the sitemap for this

Regions
Boroughs
Clients
Projects

For instance say there are four Regions with multiple boroughs within the regions, with multiple clients within the boroughs with multiple projects under the clients. (a borough will only appear under one region and so forth)

I am producing a table based on the projects.

My filtering system isn't straight forward, with the ability to select multiple options for each filter such as filtering by the region, borough, client and project name etc.

I have used filterbypath to bring back the results for the borough and the regions as these aren't parent pages to the projects but grand-parent and great-grand-parent. This works well.

However now I am trying to get them to filter by multiple selections of these it is not working as i'd hoped.

When I pass the two paths for a region, I am getting no results however passing one works, I believe it is trying to filter by both paths rather than looking for pages that exist under either one or the other path, thus never bringing back results because the page does not exist under both paths.

Does anyone know any way of getting a page-list to filter by multiple paths and bringing back results for where they are found under EITHER of the passed in paths.

Thank you for any help and suggestions in advanced.

CommotionCreative
 
melat0nin replied on at Permalink Reply
melat0nin
Did you ever manage this?
CommotionCreative replied on at Permalink Reply
CommotionCreative
I did manage to achieve the end result I wanted however I can't precisely remember the solution I came up with off the top of my head