Skip to main content

The following template field is rendering an image in my deck component with a template field:


<img src="/sfc/servlet.shepherd/version/renditionDownload?rendition=THUMB720BY480&versionId={{{ContentDocument.LatestPublishedVersionId}}}" width="100%" style="margin:1px;"></img>

It pulls the images from the chatter feed. I cannot get it to work in V2. Is there something simple I am missing or does the structure need to be different in V2?


The goal is to have one image per card. This is my V1 deck below:



In v2 we don’t have a “Template” component. It is replaced with the Text component. In that component - you can’t simply put HTML in the body of the component. You need to go to the Advanced Tab and select the “Allow HTML” boolean, and then put the code you have in your template above into the “HTML” field.


If this isn’t working, we may need to explore something deeper.


that did it. A side note, when i selected the merge field it only put 2 {{x}} around it. I added a third set and it worked perfectly.


this makes great gallery of all images loaded thru chatter. We added a date filter to it and it works really well


Reply