News Mod Fields

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
atomickarma
Forum Members
Forum Members
Posts: 18
Joined: Wed Sep 13, 2006 9:52 am

News Mod Fields

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

Re: News Mod Fields

Post 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  ::) ...
atomickarma
Forum Members
Forum Members
Posts: 18
Joined: Wed Sep 13, 2006 9:52 am

Re: News Mod Fields

Post 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.
cyberman

Re: News Mod Fields

Post 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.
atomickarma
Forum Members
Forum Members
Posts: 18
Joined: Wed Sep 13, 2006 9:52 am

Re: News Mod Fields

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: News Mod Fields

Post 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.
atomickarma
Forum Members
Forum Members
Posts: 18
Joined: Wed Sep 13, 2006 9:52 am

Re: News Mod Fields

Post by atomickarma »

Cheers mark I'll give that a try
Post Reply

Return to “Layout and Design (CSS & HTML)”