multiple news pages?

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.
Locked
atracksler

multiple news pages?

Post by atracksler »

I want to have multiple news pages n my site, currently if I add news items, I cannot seperate them into seach news page, all the news items show up on both pages, I am using v.0.12.1 "Savusavu"\\

Thanks in advance, ad
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: multiple news pages?

Post by tsw »

you need to use different categories and use category="beer" on the other page and category="wine" on the other

hope this helps
atracksler

Re: multiple news pages?

Post by atracksler »

Sorry for being a moron, but how do I set that up in the backend?
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: multiple news pages?

Post by tsw »

Thats ok ;)

First you need to create new category go to content -> news -> categories -> add category and give it some name (lets call it "beer" ;) then add another, say "wine"

Then when creating new news post you can select which category it belongs.

If you call news from a page you can use {cms_module module="news" category="beer"} and if you use content type news you have to set Category on the form.
atracksler

Re: multiple news pages?

Post by atracksler »

Okay, I think I have a grasp on this, so ho do I specify on the beer news page that I set up in the pages manager to only show the beer news?

I hope that's clear.
cyberman

Re: multiple news pages?

Post by cyberman »

atracksler wrote: ho do I specify on the beer news page that I set up in the pages manager to only show the beer news?
Put only this

Code: Select all

{cms_module module="news" category="beer"}
on your news page (or template).
atracksler

Re: multiple news pages?

Post by atracksler »

So, just to be clear, I am making a new template for each news page.

I have a general tmplate for the site
I will have a beer news template, with that code in it above
and a wine news template with the same codr modified for wine..

right???

Thanks. ad
cyberman

Re: multiple news pages?

Post by cyberman »

The general template have nothing to do with it ...

You can create a template only for news. Call now your news module like

{cms_module module="news" category="beer" summarytemplate="beertemplate.tpl"}

for summary news or

{cms_module module="news" category="wine" detailtemplate="winetemplate.tpl"}

for detailed news  :).

You call the news templates inside the general template.
Last edited by cyberman on Thu May 11, 2006 1:04 pm, edited 1 time in total.
atracksler

Re: multiple news pages?

Post by atracksler »

chalk another one up for dunce-y questions, how do i call the modules?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: multiple news pages?

Post by Dr.CSS »

well it might be long distance.. # is 1 432 587 9784
just kidding  :D

where you normally put {content} in a template you would put one of those ^ like...

{cms_module module="news" category="beer" summarytemplate="beertemplate.tpl"}

for summary news or

{cms_module module="news" category="wine" detailtemplate="winetemplate.tpl"}

  mark
cyberman

Re: multiple news pages?

Post by cyberman »

... but you can it do in a content page too  :).
atracksler

Re: multiple news pages?

Post by atracksler »

now askingthe obvoius question, how do I put it on a contact page, that just seems easier to me...
cyberman

Re: multiple news pages?

Post by cyberman »

Don't know if i've understood your question right ... please look in administration menu layout-templates for template Bulletmenu Vert 1col+News. I think there you could found the solution.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: multiple news pages?

Post by Dr.CSS »

if you mean any page even "contact"
in page edit 'box' view source button top left, clik, paste

{cms_module module="news" category="beer" summarytemplate="beertemplate.tpl"}

for summary news or

{cms_module module="news" category="wine" detailtemplate="winetemplate.tpl"}

your tag just examples into the window that pops up, clik ok, if it doesn't view right when you look at the page go back and make sure it didn't format it...

  mark
Locked

Return to “CMSMS Core”