Joey_M Posted April 22, 2020 Share 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? Link to comment Share on other sites More sharing options...
newbie LAC Posted April 22, 2020 Share Posted April 22, 2020 $record->record_image change to $record->field_X X is field ID Joey_M 1 Link to comment Share on other sites More sharing options...
Joey_M Posted April 22, 2020 Author Share 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? Link to comment Share on other sites More sharing options...
newbie LAC Posted April 22, 2020 Share 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 Link to comment Share on other sites More sharing options...
aXenDev Posted April 22, 2020 Share Posted April 22, 2020 Joey_M 1 Link to comment Share on other sites More sharing options...
Joey_M Posted April 22, 2020 Author Share Posted April 22, 2020 Jesus, I've got it. Sorry @newbie LAC - it was flying over my head. Link to comment Share on other sites More sharing options...
Recommended Posts