Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted December 28, 20186 yr I am displaying a link to download an attachment to a database record like this: {{if $record->field_204}} <a class="gamebutton" href='https://s3.us-east-2.amazonaws.com/xxxxxxxxxxxxx/{$record->field_204}'><b>Download</b></a> {{endif}} I don't think this is right because the downloaded file has a scrambled name like "FileName_zip.JHDF2342387fhdjfs875489242" What is the correct way to do this?
January 2, 20196 yr I've replied to your ticket, but I'm also going to reply here just for the case that somebody else finds this question via the search.. You need to use the helper method customFieldDisplayByKey('yourKey') or $fieldObject->DisplayValue($record->field_204) to get the proper value. Please see also You could also just use the IPS\File helper in the template
Archived
This topic is now archived and is closed to further replies.