The component presented in this article displays a list of Case records available on your organisation. By selecting a record entry from the list, the corresponding SharinPix album will be made available as shown in the example below:
For this implementation, you will need:
an Apex Class Controller that will query the Case records as well as generate the album's parameters and URL.
a Lightning Component to display the list of Case records and use an Iframe to embed the SharinPix album.
Apex Class Controller
The Apex Class Controller's implementation can be found below:
The method below (extracted from the Apex Class Controller) demonstrates how the album's parameters and URL are generated:
Lightning Component
The Lightning Component's implementation is found below:
The following code snippet demonstrate how the SharinPix album's URL is embedded inside an Iframe:
The Lightning Component Controller's is found below:
Once the implementation is done on your Salesforce organisation, go ahead and try the component by adding the same on any page record.