News and Images

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Probocop
Forum Members
Forum Members
Posts: 12
Joined: Fri Apr 11, 2008 8:32 am

News and Images

Post by Probocop »

How would I go about assigning an image to a news article, and then displaying it on the news summary page?

{news category="staff" summarytemplate="staff" moretext="Read More..." sortby="start_time"}

That's the code I'm using on my Staff page.


Basically I want it to display an article specific image on the summary template.
Probocop
Forum Members
Forum Members
Posts: 12
Joined: Fri Apr 11, 2008 8:32 am

Re: News and Images

Post by Probocop »

Well I found the define custom field bit, so have sorted a file upload for each article.

The only thing I need to know now is, what piece of code do I use to GET the filename of the article image?
Probocop
Forum Members
Forum Members
Posts: 12
Joined: Fri Apr 11, 2008 8:32 am

Re: News and Images

Post by Probocop »

Nevermind, all sorted now.
lainyrache
Forum Members
Forum Members
Posts: 106
Joined: Thu Oct 05, 2006 11:27 am

Re: News and Images

Post by lainyrache »

Hi Probocop,

Glad you got your image to show in the end!
I am looking to do exactly the same thing, but have got a bit stuck... could you possibly share your solution?  ;D

Many thanks,
Rachael
Post Reply

Return to “Modules/Add-Ons”