News ONLY on home page

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
saveourbeavers

News ONLY on home page

Post by saveourbeavers »

I apologize if this has been solved on here already (I looked around and didn't see exacltly what i needed).

I'm trying to show the news module ONLY on the home page.  Does this require me setting up different templates for each page??

I'm hoping there is an easier way to 'shut off' the news module on any page that is not Home.

Thanks.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: News ONLY on home page

Post by Dr.CSS »

In default install it is coded into the template...

     
        News
          {news limit=3 detailpage='news'}
     
     

If you want to put something diff. in this for diff. pages you can...

     
        {content block="newstitle" oneline="true"}
          {content block="news"}
     
     

then in the Content » Pages » Edit Page: Home, or any page that uses that template, you will see another 'content edit box' called news that you can put the news tag call, {news limit=3 detailpage='news'}, in and on other pages you can put something diff. in it or nothing at all, the {content block="newstitle" oneline="true"} gives you a one line edit box, called newstitle, to put a title in...

Or in CSS for other pages... #news{display:none}
Locked

Return to “CMSMS Core”