[SOLVED] News Module Details Using NCleanBlue Template?

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.
Post Reply
dillony
New Member
New Member
Posts: 9
Joined: Wed Aug 26, 2009 6:47 am

[SOLVED] News Module Details Using NCleanBlue Template?

Post 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.
Last edited by dillony on Mon Dec 14, 2009 7:45 am, edited 1 time in total.
dillony
New Member
New Member
Posts: 9
Joined: Wed Aug 26, 2009 6:47 am

Re: News Module Details Using NCleanBlue Template?

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

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

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

Return to “CMSMS Core”