Knowledgebase: Miscellaneous
How to add a link to a field of the file type? PDF, for example.
Posted by Lena Kosyakova on 28 November 2008 04:59 PM

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

(229 votes)
This article was helpful
This article was not helpful

Comments (0)
Post a new comment 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako Fusion