Page 1 of 1

multiple news pages?

Posted: Tue May 09, 2006 6:27 pm
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

Re: multiple news pages?

Posted: Tue May 09, 2006 6:56 pm
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

Re: multiple news pages?

Posted: Tue May 09, 2006 7:00 pm
by atracksler
Sorry for being a moron, but how do I set that up in the backend?

Re: multiple news pages?

Posted: Tue May 09, 2006 7:09 pm
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.

Re: multiple news pages?

Posted: Tue May 09, 2006 7:11 pm
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.

Re: multiple news pages?

Posted: Wed May 10, 2006 4:48 am
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).

Re: multiple news pages?

Posted: Thu May 11, 2006 12:24 pm
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

Re: multiple news pages?

Posted: Thu May 11, 2006 1:03 pm
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.

Re: multiple news pages?

Posted: Thu May 11, 2006 3:39 pm
by atracksler
chalk another one up for dunce-y questions, how do i call the modules?

Re: multiple news pages?

Posted: Thu May 11, 2006 3:58 pm
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

Re: multiple news pages?

Posted: Fri May 12, 2006 4:50 am
by cyberman
... but you can it do in a content page too  :).

Re: multiple news pages?

Posted: Fri May 12, 2006 1:24 pm
by atracksler
now askingthe obvoius question, how do I put it on a contact page, that just seems easier to me...

Re: multiple news pages?

Posted: Fri May 12, 2006 1:32 pm
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.

Re: multiple news pages?

Posted: Fri May 12, 2006 1:41 pm
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