Forum Discussion

Flowlynow's avatar
Flowlynow
Copper Contributor
Jun 11, 2024
Solved

Can i dynamically filter a list on a page to match content to the page title

Hi Folks,

 

I have a Sharepoint list (Risk_links) with groupings that provides links to areas of risk.

 

I have an index page

I also have a page for EACH risk category that provides guidance on that topic.

 

On each topic page I have hosted the 'list web part' that links to RIsk_links.

 

~~

 

What I am hoping to achieve is to have each topic page filter the Risk_links list to only show the same items with the same category as the page title

 

E.G.

 

Topic page = Asbestos

filter the Risk_links list to only show 'Asbestos' rows.  

 

~

 

I could create a list in each page, and manually upload the relevant content, what i'd like though is the one master list that is dynamically filtered so i can keep one thing current rather than having to keep many things current.

 

This would also help me create a page template so that new topics could be added fairly seamlessly.  

 

~

 

Is there a setting (or some JSON) that can help the list in each topic page to dynamically filter the list as desired?

 

Thanks

  • Flowlynow 

    You can create views on the list for each risk category then set the webpart to display that view you would need to configure the webpart for each new page but it's simple to add the view to the webpart 

    These resources shpuld help

    https://support.microsoft.com/en-gb/office/use-the-list-web-part-ef0a1b80-f8b3-443d-b04a-1e76c70b5537

     

    https://support.microsoft.com/en-gb/office/create-change-or-delete-a-view-of-a-list-or-library-27ae65b8-bc5b-4949-b29b-4ee87144a9c9#:~:text=Create%20a%20view,-Note%3A%20If%20you&text=To%20learn%20more%2C%20see%20Configure,permissions%20to%20create%20a%20view.

     

2 Replies

  • Josh_Wickes's avatar
    Josh_Wickes
    Brass Contributor

    Flowlynow 

    You can create views on the list for each risk category then set the webpart to display that view you would need to configure the webpart for each new page but it's simple to add the view to the webpart 

    These resources shpuld help

    https://support.microsoft.com/en-gb/office/use-the-list-web-part-ef0a1b80-f8b3-443d-b04a-1e76c70b5537

     

    https://support.microsoft.com/en-gb/office/create-change-or-delete-a-view-of-a-list-or-library-27ae65b8-bc5b-4949-b29b-4ee87144a9c9#:~:text=Create%20a%20view,-Note%3A%20If%20you&text=To%20learn%20more%2C%20see%20Configure,permissions%20to%20create%20a%20view.

     

    • Flowlynow's avatar
      Flowlynow
      Copper Contributor
      Thanks Josh and I'll give it a crack!

      My only concern with views is that I thought that the views apply to the master list, and then what ever one you picked on the list page will present on each topic page.

      IF, you cna make views on the topic pages that are not coupled to the master view and aren't upset by another topic page - then thats great!

      Thaks

Resources