Page 1 of 1

Upload file in News module

Posted: Fri Aug 29, 2008 2:37 am
by l1nda
Hi

I added a field definition in the News module so that a PDF could be uploaded. However, in the news article it only shows an image of the PDF file and I'm unable to download it as a PDF file at all.

I noticed that someone suggested that I need to change the if statement because it defaults to showing an image but i don't know how to change the if statement?

Does anyone have any suggestions?  ???

Thanks!

Re: Upload file in News module

Posted: Mon Sep 01, 2008 4:15 pm
by lainyrache
Hi L1nda

I added a field definition which I called 'pdf version'
and used this if statement in my news detail template:

Code: Select all

{if $entry->pdf_version}
	<div class="pdflink"><a href="{$entry->file_location}/{$entry->pdf_version}" class="biglink" />PDF version of this article</a></div>
{/if}
This creates a link to my pdf file.
Hope this helps  :D
Rachael