Jump to content

Download image from custom field


Recommended Posts

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

$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>

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...