How To Create a NEWS 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.
Post Reply
bcsweb1
Forum Members
Forum Members
Posts: 54
Joined: Tue Nov 13, 2007 2:39 pm

How To Create a NEWS PAGE

Post by bcsweb1 »

1. Latest Version of CMS - 1.2
2. News Module 2.6

The default CMS templates have the news tag {news} in the left hand column. News as a 'page type' is no longer supported.

So my question is we need to create a NEWS PAGE - where someone clicks there and see's all the articles - just like the old News Module allowed as a page type.

How do create a page that will show all the articles and we can link to it?

Thanks
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

Re: How To Create a NEWS PAGE

Post by kermit »

make a new (regular content) page, title and call it whatever you want.. this example assumes the page alias of: news

in the content area use something like:

Code: Select all

{news browsecat='1'}
{news detailpage='news' number='5'} 
this will give you a (linked) list of categories followed by summaries of the 5 newest articles. if you just want "all" article summaries, use:

Code: Select all

{news detailpage='news'}
optional.... back in your cmsms template, you can change the {news} tag to read something like:

Code: Select all

{news detailpage='news' number='2'}
to limit the number of article summaries shown in that more limited space.
Last edited by kermit on Sat Nov 17, 2007 4:30 am, edited 1 time in total.
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
bcsweb1
Forum Members
Forum Members
Posts: 54
Joined: Tue Nov 13, 2007 2:39 pm

Re: How To Create a NEWS PAGE

Post by bcsweb1 »

I did what you suggested but I am not sure if it is correct...

http://awomansworth.org/site/index.php?page=press

On this page I just want the articles to appear and not the left column with the same thing again.

Any ideas?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: How To Create a NEWS PAGE

Post by calguy1000 »

Then you have a number of options.....

1) you could create a new page template, that takes {news} out of the left column and use that new template for your news page.

or

2) you could set a variable in the metadata section of the news page and then use some logic to optionally display the news.

i.e:
  (in the metadata section on the options tab):  {assign var='hideleftnews' value='1'}
  (in the page template):  {if !isset($hideleftnews)}{news}{/if}

Note, that this is a very powerful technique that can be used for a variety of purposes.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “CMSMS Core”