Introduction

In my previous article, I already explained how to open selected Modern List item details in List Properties Viewer.
Here, let us see about using modern web parts, and how we can view the selected list item without any customization using Embed Web Part to view the video, image, and location.
In SharePoint online modern site, Embed web part was different from the Link Web Part, which will only display a preview of an image, video or location. Microsoft added the ability to embed things on a SharePoint online modern site page.

Scenario

The requirement is to open the selected List item like Video, Image or location without opening it in a new tab of the browser window and Popup window of the model dialog box and without using custom code.
This should be achieved using Modern in OOB web parts.

Objective

The below OOB web parts will be used in this solution.
  1. List web part
    Connect to List & select Item

  2. Embed web part
    The web part will connect to list web part on this page to dynamically display a selected item in the list. With embed web part, you can enter links or embed code that uses variables, allowing you to show a wide variety of items depending on what your page viewer selects. Here are three examples of how you could show selected video, image, and location.

Images

I have created the “ImageShowcase” list. In this list we created two columns, Title and ImageURL.
How To Open Selected List Item Image, Video Or Location Connect An Embed Web Part To A List Web Part.
When a user chooses an image from the list web part, show a selected image in Embed web part.
Follow the below steps.
Step 1
Navigate to your SharePoint 2013 site -> Create Modern Page in Site Pages.
Step 2
From this page,
Step 3
You will see two sections to add web parts,
How To Open Selected List Item Image, Video Or Location Connect An Embed Web Part To A List Web Part.
Step 4
Step 5
Final Step
Without Selected List Item Screen
How To Open Selected List Item Image, Video Or Location Connect An Embed Web Part To A List Web Part.
With Selected List item
How To Open Selected List Item Image, Video Or Location Connect An Embed Web Part To A List Web Part.
Video
I have Created the “Video Gallary” List. In this list we created two columns, Title and Video ID. In Title column set the video Title and in the Video ID column set the YouTube Video Key.
How To Open Selected List Item Image, Video Or Location Connect An Embed Web Part To A List Web Part.
When a user chooses a Video Title from the list web part, show a selected Title Video in Embed web part.
Follow the same steps 1 to 4 of Image Section.
Step 5
Final Step
Without Selected List Item Screen
How To Open Selected List Item Image, Video Or Location Connect An Embed Web Part To A List Web Part.
With Selected List item
How To Open Selected List Item Image, Video Or Location Connect An Embed Web Part To A List Web Part.
Location
I have Created the “CountriesLatitudeLongitude” List. In this list we created three columns, Title, Latitude, and Longitude. In Title column set the country Title and in the Latitude and Longitude column set the country latitude and longitude.
How To Open Selected List Item Image, Video Or Location Connect An Embed Web Part To A List Web Part.
When a user chooses a Video Title from the list web part, show a selected Title Video in Embed web part.
Follow the same steps 1 to 4 of Image Section.
Step 5
<iframe width="500" height="400" src="https://www.bing.com/maps/embed?h=400&w=500&cp=[$Latitude]~[$Longitude]&lvl=13&typ=d&sty=r&src=SHELL&FORM=MBEDV8" frameborder="0" scrolling="no"> </iframe>
Final Step
Without Selected List Item Screen
How To Open Selected List Item Image, Video Or Location Connect An Embed Web Part To A List Web Part.
With Selected List item
How To Open Selected List Item Image, Video Or Location Connect An Embed Web Part To A List Web Part.
Click here to get all countries latitude longitude.
Note
Feature of the Embed web part
  • You can display content using a website address
  • Display content using embed code
  • Display dynamic content by connecting to another web part
<<Prev Part