1

I have a list with about 250 rows and a column called "Photo" that has relatively low-res .jpg images.
It works pretty well in list mode, but then I switch to the Gallery view everything breaks apart. Only rows that DON'T have images have their cards show up. Like this:

galleryview

I even tried creating a new view and have it be gallery by default. Same result:

view

I should point out that the pictures were added to the list via Set-PnPListItem PnP.Powershell module cmdlet. I don't know if that could have any impact on this or if it's just SharePoint not being able to handle 250 thumbnails in a gallery. It works perfect in List and Compact List formats.

Thank you.

2
  • Is there any custom JSON code applied to Gallery view? Apr 9, 2021 at 9:11
  • Nothing that I did myself. The current json was generated automatically when switching to gallery view
    – Ress
    Apr 9, 2021 at 9:26

1 Answer 1

1

I managed to fix it. Somehow the custom-generated json had an issue in the img src:
enter image description here

After deleting the highlighted area and leaving only "[$Photo.serverRelativeUrl]" it worked! I don't know why it would be appending the serverUrl to the src, but that was the issue.

1
  • Great, glad you managed to solve the issue! Apr 9, 2021 at 10:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.