Back to view formats
View formattingSharePoint Online

Photo Gallery with Description, Link and Likes

This sample demonstrates formatting a document library gallery view into a photo gallery showing title, description, hyperlink and likes.

Photo Gallery with Description, Link and Likes formatting preview
Sample preview · View original image

Copy. Apply. Make it yours.

Get this format

1 definition

Review the requirements below, then paste this JSON into the matching formatting panel. Show me where.

Use your list's internal column names and replace any tenant-specific URLs or flow IDs. Formatting is presentation, not a way to secure data.

From the contributor

How to use this sample

Summary

This sample demonstrates formatting a document library gallery view into a photo gallery showing title, description, hyperlink and likes.

screenshot of the sample

Credit to original author Lou-i3, I have copied and modified photo-gallery-with-likes.json to give another variant option.

View requirements

The view must be set to gallery. Use a category column to filter your view so the list can house multiple categories for display purposes.
This format expects the following columns to be part of the view:

Type Internal Name Required
Single line of text Title No
Multiple lines of text Description No
Hyperlink or Picture Image No
Hyperlink or Picture Link No
Choice Category No
Number LikesTotal No
Multi-Person LikedBy No

[!NOTE] When using an external image URL in the Image column, the image might not appear if it's retrieved from a domain that isn't allowed. Please make sure to configure the HTML Field Security settings when using external images. For more information, see Allow or restrict the ability to embed content on SharePoint pages.

Sample

Solution Author(s)
photo-gallery-description-link-like.json AngelaTS

Version history

Version Date Comments
1.0 November 4, 2025 Initial release

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.