How to add a link to Video Tour?

Top  Previous  Next
1.create a field called VideoTourLink of the "string" type
 
2.add the following lines to input forms templates to a desired location:
<tr>
<td>[[$form_fields.VideoTourLink.caption]]:</td><td colspan="5">{input property=VideoTourLink}</td>
</tr>
 
3.add the following lines to listing_details.tpl to a desired location:
{if $listing.VideoTourLink}
<tr><td><a href="{$listing.VideoTourLink}" target="_blank">View Video Tour</a></td></tr>
{/if}

 

Users must enter a full URL, i.e. http://www.site.com.