Jump to content

Recommended Posts

Posted

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?

Posted
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?

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

 

  • Recently Browsing   0 members

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