Page 1 of 1

[SOLVED] News Module Details Using NCleanBlue Template?

Posted: Mon Dec 14, 2009 7:08 am
by dillony
I've got a fresh install of 1.6.6. I've tried reading through the different posts, but either I'm not quite understanding how to do this, or they were all referring to something else.

My default template for the homepage is "NCleanBlue". When you click on the "News" link on the left column, I want it to display the next page using the "NCleanBlue" template, not the "Left simple navigation + 1 column" template, which it appears to be doing.

I've tried editing the NCleanBlue template from:

Code: Select all

{* Start News *}
<div id="news">
 {news number='3' detailpage='news'}
</div>
To:

Code: Select all

{* Start News *}
<div id="news">
 {news number='3' detailpage='news' detailtemplate='NCleanBlue'}
</div>
But... this does not work.

I'm sure there is something simple that I'm missing, but I've tried everything that I can think of...

Thanks in advance.

Re: News Module Details Using NCleanBlue Template?

Posted: Mon Dec 14, 2009 7:44 am
by dillony
After taking a bit of a break, and clearing my head, I've figured it out. Here are the detailed steps for those of you wanting to do the same thing.

Create a new page. I created a page "News Page". Which has an alias of "news-page". Set the template to "NCleanBlue". For the content, add:

Code: Select all

{cms_module module="news" }
Edit the "NCleanBlue" template.

Find:

Code: Select all

{news number='3' detailpage='news'}
Change to:

Code: Select all

{news number='3' detailpage='news-page'}
That's it.

Re: [SOLVED] News Module Details Using NCleanBlue Template?

Posted: Mon Dec 14, 2009 3:00 pm
by Dr.CSS
Or you could have just changed the template of the 'News' page...

If your using the detailpage parameter it will go to the page you say and that page uses whatever template you assign to it, you can't change a page template in a news tag...