Salesforce Commerce Cloud (SFCC) can generate dynamic pages (like the homepage or category pages) using content slots. Content slots can use content assets such as HTML blocks that are created and stored in the SFCC content library to display images and videos to the user.
To use Cloudinary images and videos in content slots you'll have to do the following:
- Make sure that the images and videos you would like to use are already uploaded into Cloudinary (If you have migrated your content library into Cloudinary using the
Upload Content Library Asset
andUpload Catalog Asset
jobs in the SFCC cartridge, this media will already be present in Cloudinary). - Edit the content asset in SFCC
- Use Cloudinary delivery URLs for images and videos that are available in the Cloudinary DAM
For ease of use, the Cloudinary cartridge provides helper functions to generate optimized URLs or <img>
and <video>
tags based on the custom preferences for the site. You can refer to sections 3.8.15 and 3.8.16 in the documentation embedded in the cartridge for usage examples.
You can also see example content assets in our GitHub repo and see it live on our demo site as well.
Comments
0 comments
Please sign in to leave a comment.