News module - Upload file

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
OCStingFan
Forum Members
Forum Members
Posts: 12
Joined: Tue Nov 06, 2007 10:21 pm

News module - Upload file

Post by OCStingFan »

I did a search but couldn't locate this specific question, though there might be similar questions on how the Uploads module works in conjunction with other modules.

When I create a new News Article, I see the Upload File field at the bottom of the form. When I use it to attach a file to the article, the filename does show up next to the field. So it seems like the upload was successful, and the file continues to be associated if you come back to the article later after saving/submitting it. However, on the front end, there is no indication that there is a file attached to the news article.

How can I get the filename to display as a download link? Less importantly, is there any way to show the proper icon for the file type?

Thanks for the help.
mager
Forum Members
Forum Members
Posts: 44
Joined: Wed Apr 04, 2007 2:25 pm
Location: Bremen

Re: News module - Upload file

Post by mager »

You have to modify the template to display the file.
l1nda
Forum Members
Forum Members
Posts: 18
Joined: Mon Jul 28, 2008 5:49 am

Re: News module - Upload file

Post by l1nda »

am having the same issue. but what do I have to modify the "if" statement to in the template?
Post Reply

Return to “CMSMS Core”