Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Lori Nelson Posted August 22, 2016 Posted August 22, 2016 Is there a way to create maybe a custom field where you can upload a thumbnail image for individual records which displays the thumbnail on the resource list page? When I use the custom upload field, it only displays the url of the uploaded file, and not the image itself.
Joel R Posted August 22, 2016 Posted August 22, 2016 1 hour ago, Lori Nelson said: Is there a way to create maybe a custom field where you can upload a thumbnail image for individual records which displays the thumbnail on the resource list page? When I use the custom upload field, it only displays the url of the uploaded file, and not the image itself. Yes, make sure you activate Record Image in the fields. @opentype can walk you through it if you still need help.
opentype Posted August 23, 2016 Posted August 23, 2016 As Joel said: Activate the “Record Image” field for the database. It already comes with a thumbnail feature and can be shown easily. It’s also used for social media sharing, which is nice. Upload fields can also be shown as images of course, but we would need some more information about what you are trying to achieve and what you have set up so far.
Lori Nelson Posted August 23, 2016 Author Posted August 23, 2016 Thanks. Now how do I alter the recordRow template to show the thumbnail on the list of records?
opentype Posted August 23, 2016 Posted August 23, 2016 Something like: {{if $row->record_image}} <img class="ipsImage" src="{file="$row->_record_image_thumb" extension="cms_Records"}"> {{endif}}
Recommended Posts
Archived
This topic is now archived and is closed to further replies.