Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
ArchangelX Posted January 4, 2016 Posted January 4, 2016 Hello, There are several instances where Record Image simply isn't cutting it. For one, you cannot alter its position in the Custom Field list. For some reason, it is hard coded to the bottom. This makes it confusing for members when they see that post additional images, and then see that they have another button at the bottom asking for images. Currently, I have two image upload buttons setup. One is for Upload Primary Image, and another for Upload Additional Images. I would like to replace the record_image with my custom image, however I don't understand the proper syntax to code it properly. How would I replace: <a href="{$record->url()}" style="background-image: url({{if ($id == 0)}}{file='$record->record_image' extension='cms_Records'}"> With my "image" template key? I know this below is how it's called elsewhere...but how would I included it in the code statement above? {$record->customFieldDisplayByKey('image', 'display')|raw} Any help would be appreciated. Thank you.
ArchangelX Posted January 8, 2016 Author Posted January 8, 2016 If anyone needs the answer to this, the solution for this is to include the field_ID number to replace the record_image in the first code. You can get the ID from looking at the end of the URL string when editing the custom field - field_xx
Recommended Posts
Archived
This topic is now archived and is closed to further replies.