Forum Discussion
Adding a List Item to a Project Detail Page in Gallery format
I created a new custom list in Sharepoint and set it to gallery view, so I can see each list item as a card with Choice Pills styling. I have attached a picture of one of the list items. I want to be able to present this list item (as is) in a Project Details Page using a web part.
1) Is this possible? If so, how?
2) Which webpart would I use to achieve this?
3) Are there other web parts that are available to download from Microsoft that may allow me to do what I am envisioning?
Thank you in advance.
5 Replies
Hello John Passaro ,
Where is the list hosted?
Out of the box you can surface lists from the PWA site collection in pages in PWA such as PDPs using the List found in the Apps Category as seen below - I have a list called "Test List" in my root PWA site:
Please note, as this list is central and not project specific and the PDPs are shared pages between projects, this list will appear on for all Projects - see example below:
"Pauls Test Project":
"Pauls Test Project 2":
That is the out of the box option for surfacing a list on a PDP.
Regarding other web parts to download - there is a SharePoint store. From the Site Contents page in PWA, click New --> App
Click From SharePoint Store:
Some of those Apps might include App parts (webparts). I'm not sure if there is anything in the store that will give you what you need, but have a browse to see what you can find.
Paul
- John PassaroCopper ContributorThanks, Paul. My list was created at the project level and I just can't seem to find a webpart that will allow me to see the Gallery view Card in the PDP. I'm assuming the only way for me to show the list as a webpart is to create it from the root site for all projects? That is not what I'm looking for. I wanted to create the project health list for each project and show it in their respective PDP. Thank you.
Hello John Passaro ,
There wont be a webpart for the classic PDPs to show the gallery view on a modern list - I think you'd need to build (code) that yourself.
Will this central list on the root site contain items for each project? Out of the box you wont be able to filter the list items for the current project on that PDP, the list view will show all items in the list view used. Where the list is a central list on the root site or a list on the project site, you will need a custom solution to display the filtered / specific content for that project on the PDP. These blog posts might help:
The code isn't available on the download link anymore but I can share it here if needed (it will need updating / testing / making suitable for production use as it is very old - it might not event work anymore!)
Paul