Upload file in News module

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
l1nda
Forum Members
Forum Members
Posts: 18
Joined: Mon Jul 28, 2008 5:49 am

Upload file in News module

Post 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!
lainyrache
Forum Members
Forum Members
Posts: 106
Joined: Thu Oct 05, 2006 11:27 am

Re: Upload file in News module

Post 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
Post Reply

Return to “Modules/Add-Ons”