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} | |
|
Comments (0)