News Module and NCleanblue template
- wakewatcher
- Forum Members
- Posts: 149
- Joined: Fri Dec 28, 2007 12:33 am
News Module and NCleanblue template
I just set up a new site using 1.11.4 and liked the NCleanblue template for everything so spend the day putting it all together. The last thing I did was to add some news. However when the news article is clicked everything changes. I couldn't figure out how to import/create a NCleanblue template for News. It's very distracting having it bounce to another template when viewing news articles. How can I keep the current template when viewing news (or if not current then the NCleanblue template.)
Re: News Module and NCleanblue template
The default {news} tag in ncleanblue and most all other default page templates has a detailpage='news' parameter which will send you to a page called News which may have a different page template associated with it...
- wakewatcher
- Forum Members
- Posts: 149
- Joined: Fri Dec 28, 2007 12:33 am
Re: News Module and NCleanblue template
Yes I sort of gather that but when I went to the news section of the content admin page I couldn't figure out how to change the template. I've decided to stay with the NCleanblue template throughout. I tried copying the NCb template for pages and create one for the News detail but it didn't work. So my ignorance is surely showing. Any pointers on how I can change News page template? Thx.
Re: News Module and NCleanblue template
Ncleanblue is a page template, news has it's own templates for summary, detail, etc. the tag is most likely in the "page template" Ncleanblue like so...
{* Start left side *}
<div id="left" class="core-float-left">
<div class="sbar-top">
<h2 class="sbar-title">News</h2>
</div>
<div class="sbar-main">
{* Start News *}
<div id="news">
{news number='3' detailpage='news'}
</div>
<img class="screen" src="uploads/NCleanBlue/screen-1.6.jpg" width="139" height="142" title="CMS - {cms_version} - {cms_versionname}" alt="CMS - {cms_version} - {cms_versionname}" />
{* End News *}
</div>
<span class="sbar-bottom"> </span>
</div>
{* End left side *}
{* Start left side *}
<div id="left" class="core-float-left">
<div class="sbar-top">
<h2 class="sbar-title">News</h2>
</div>
<div class="sbar-main">
{* Start News *}
<div id="news">
{news number='3' detailpage='news'}
</div>
<img class="screen" src="uploads/NCleanBlue/screen-1.6.jpg" width="139" height="142" title="CMS - {cms_version} - {cms_versionname}" alt="CMS - {cms_version} - {cms_versionname}" />
{* End News *}
</div>
<span class="sbar-bottom"> </span>
</div>
{* End left side *}
- wakewatcher
- Forum Members
- Posts: 149
- Joined: Fri Dec 28, 2007 12:33 am
Re: News Module and NCleanblue template
Yes I found all those references in the Ncleanblue page template and see that the News Module has tabs for different templates. But I'm not groking how to modify anything so that when I click on a news item that the news detail page it goes to uses the Ncleanblue look. I assumed that I needed to select/add a template to content/News/Detail Templates but if so I can't figure out how to do it.
Re: News Module and NCleanblue template
Default action for News, click [more] link or title link if not using summary box, is to replace anything in the {content} of a page, if using the detailpage= parameter it will replace the {content} of that page, the look of that page is determined by the "page template" that page uses, if it doesn't look the same look at Content > Pages to see what 'page template' it uses...
The News templates only control/use parts of the News article, Title, Category, Date of publish, Author name, Summary content, Detail content, the extra field and any additional fields you may create, they have nothing to do with the "Pages" look...
The News templates only control/use parts of the News article, Title, Category, Date of publish, Author name, Summary content, Detail content, the extra field and any additional fields you may create, they have nothing to do with the "Pages" look...
- wakewatcher
- Forum Members
- Posts: 149
- Joined: Fri Dec 28, 2007 12:33 am
Re: News Module and NCleanblue template
I don't know if my work around is what you are describing (I didn't answer my own post as I wanted it to soak awhile.) What I did was create a new page (mynews) with the Ncleanblue page template and I then hid the page from the menu. Then I edited the Ncleanblue page template and changed {news number='3' detailpage='news'} to {news number='3' detailpage='mynews'} and it seems to work so far.
Thanks for your help. I appreciate it. Got a lot done today! (Well not so much cleaning up the garage as was the original Saturday goal. But oh well. )
Thanks for your help. I appreciate it. Got a lot done today! (Well not so much cleaning up the garage as was the original Saturday goal. But oh well. )