Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Joey_M Posted April 22, 2020 Posted April 22, 2020 I have created a simple wallpaper system via IP.Pages. @newbie LAC has helped me to customise certain parts in the past, however, I'm trying to amend the download button. <div class='ipsPos_right'> <a href='{file="$record->record_image" extension="cms_Records"}{$row->record_image}' download="{$record->_title}" class="ipsButton ipsButton_important ipsButton_verySmall ipsClearfix ipsResponsive_noFloat" style="line-height: 24px; margin-left: 15px;" title="{lang="download"}"> <i class="fa fa-download"></i> {lang="download"} </a> </div> The code above would pull the record image to be downloaded, however, this isn't the image for the wallpaper itself now. Can anyone either tell me how to correct this so that new field that has the wallpaper is used instead of the record image or paste the code corrected? I would be very grateful. @Adriano Faria would you happen to be able to help?
newbie LAC Posted April 22, 2020 Posted April 22, 2020 $record->record_image change to $record->field_X X is field ID Joey_M 1
Joey_M Posted April 22, 2020 Author Posted April 22, 2020 8 minutes ago, newbie LAC said: X is field ID The field ID is the number of the field? $record->$record->field_34 I've tried this and $record->field_wallpaper-image, both create a configuration error. Where do I find the ID?
newbie LAC Posted April 22, 2020 Posted April 22, 2020 $record->field_34 <div class='ipsPos_right'> <a href='{file="$record->field_34" extension="cms_Records"}{$row->field_34}' download="{$record->_title}" class="ipsButton ipsButton_important ipsButton_verySmall ipsClearfix ipsResponsive_noFloat" style="line-height: 24px; margin-left: 15px;" title="{lang="download"}"> <i class="fa fa-download"></i> {lang="download"} </a> </div> Joey_M 1
Joey_M Posted April 22, 2020 Author Posted April 22, 2020 Jesus, I've got it. Sorry @newbie LAC - it was flying over my head.
Recommended Posts