Page 1 of 1

Another Easy one: I want my news items to have an optional image

Posted: Tue Feb 20, 2007 3:11 pm
by AndyHolyer
... And then I'll change the news template to optionally display it if it exists.

Can't see any docs to describe how I do this, but I'm *sure* it's easy.

Re: Another Easy one: I want my news items to have an optional image

Posted: Tue Feb 27, 2007 9:04 am
by AndyHolyer
The deafening silence to my last post implies that I was wrong in guessing that extending the News module would be easy.

The fact that the idea was raised twice in the News module files seems to imply that it's a non-starter. Am I correct?
I'm thinking now of doing some PHP magic so that if the summary contains an image (If I can get my head around setting up TinyMCE correctly, I'd like to have "an image of class 'headline_pic'" instead but that's next week's challenge) and then do some magic to display this image in a rigourous way (thumbnailed, stadard position, etc.). Is this the way to go?

Re: Another Easy one: I want my news items to have an optional image

Posted: Tue Feb 27, 2007 12:59 pm
by girlnerd
The way I add images to News items, is to use a CSS class in the newsletter CSS file. It seems to work for my editor who is not very html savvy.