Page 1 of 1

News Mod Fields

Posted: Tue Apr 03, 2007 10:20 pm
by atomickarma
Hi

Is it possible to add a new field/section to a news template?

For instance in a page template I can add {content block="content block"} to add sections to the template which I can then manipulate separately with css and obviously add content to in the content page.

But can this - or an equivalent - be done with the news module?

As a demonstration, I have www.gadgetmonkey.net (which is in html and css), vs www.gadgetmonkey.net/index.php.

The php version uses CMSMS, but I'm unable to do anything with the preview image while using the news module, as I cannot add a new content section so the image must exist as part of the same content section as the preview text.

Cheers
Christian

Re: News Mod Fields

Posted: Wed Apr 04, 2007 4:41 am
by cyberman
atomickarma wrote: but I'm unable to do anything with the preview image while using the news module, as I cannot add a new content section so the image must exist as part of the same content section as the preview text.
Why do you want a new news content block? Post a new news and you have a new entry  ::) ...

Re: News Mod Fields

Posted: Thu Apr 05, 2007 11:00 am
by atomickarma
Perhaps I didn't explain too well

I have a problem placing an image in a news item, which is why i want a new news content block.  (although I thought by giving examples that would be quite obvious)

It seems to me that the news module is the best way to achieve what I want, ie providing previews of the content on the main page, and then full content on the page in question when the [more] button is clicked.  However I want to preview the image too, hence my original post.

Re: News Mod Fields

Posted: Thu Apr 05, 2007 11:43 am
by cyberman
atomickarma wrote: I have a problem placing an image in a news item,
Can you describe your problem?

If you have defined a wysiswy editor you can insert images via editors toolbar.

PS: There's a cataloger module too.

Re: News Mod Fields

Posted: Thu Apr 05, 2007 5:49 pm
by atomickarma
I think it would have helped if you had looked at the examples I gave earlier, but no matter, here is another:

www.kasterborous.com

This website has a list of links on the right-hand side that consist of preview images and a few lines of text from the main article.  It is this same effect which I wish to achieve on www.gadgetmonkey.com - an image and some preview text which are hyperlinked to the actual article under its appropriate parent.

As I was playing with the news mod at the time, it seemed reasonable to try and add another field

I've also tried page blocks mod, but this just leaves a blank space.

Re: News Mod Fields

Posted: Fri Apr 06, 2007 6:15 pm
by Dr.CSS
You can use News to do this, it takes diff. templates to show what you want, the first part would be the summary box and then it goes to detail view...

Put the image in summary then add text and set the image to have text right and it will show on the page with a more... link to the detail which can be set to show on another page, if you go to Extensions > Modules then click on 'News' or 'Help' to the right it will show the parameters it takes such as summarytemplate='nameofnewtemplate.tpl' which you can make to show just the parts you want and put it in the news/template folder and...

# (optional) summarytemplate="sometemplate.tpl" - Use a separate template for displaying the article summary. It have to live in modules/News/templates.
# (optional) detailtemplate="sometemplate.tpl" - Use a separate template for displaying the article detail. It have to live in modules/News/templates.
# (optional) detailpage="pagealias" - Page to display News details in. This can either be a page alias or an id. Used to allow details to be displayed in a different template from the summary.

Re: News Mod Fields

Posted: Sat Apr 07, 2007 11:08 am
by atomickarma
Cheers mark I'll give that a try