Page 1 of 1

Showing news detail on a separate page

Posted: Wed May 23, 2007 3:31 pm
by Anastasis
The draft of our new website design has just the titles of the latest 3 news items in a column displayed on the far right of the home page. I have managed to get CMSMS to do that just fine by amending the summary template.

However, adding some articles to test it I see that the actual article appears as part of the home page, overwriting our home page content and leaving the last three news items still showing on the right. This is not what I want it to do. I want it to drill through to a separate page just showing the news article with the breadcrumb at the top left showing 'home >> news'.

You can see an idea of how this is on our current (soon to be replaced) static website here (minus the breadcrumbs):

This is the home page:

http://www.chasecooper.com/index.php (shows news column with 3 stories)

and this is the article page of the first item:

http://www.chasecooper.com/News-Regulat ... -05-21.php

Is there a way to do this with the supplied news module in CMSMS?

Also, you will notice on the news article page that there are up to 3 items of "related news". These are currently selected by the editor (although it would be good to automate it based on category). Can additional content items be included when adding an article in the same way as on standard pages?

Thanks in advance for your help on this.

Re: Showing news detail on a separate page

Posted: Wed May 23, 2007 5:53 pm
by calguy1000
go to Extensions >> Modules, and click on the 'help' link beside news.  In there you will see a parameter that can be used to do what you want.

Re: Showing news detail on a separate page

Posted: Wed May 23, 2007 11:03 pm
by Anastasis
calguy1000 wrote: go to Extensions >> Modules, and click on the 'help' link beside news.  In there you will see a parameter that can be used to do what you want.
Thanks for your reply.

I see this listed in the help section you mention:
  • (optional) detailpage="pagealias" - Page to display News details in. This can either be a page alias or an id. Used to allow details to be displayed in a different template from the summary.
I assume that must be it? I will give that a spin tomorrow.

Thanks again. :)

Re: Showing news detail on a separate page

Posted: Thu May 24, 2007 7:51 am
by RonnyK
Correct,

Code: Select all

detailpage="somepage"
Will make it open in the page "somepage", If you create the page, make sure that on the options-tab "show in menu" is unchecked, to make the page not visible in the menu, it must be active otherwise it can't be called.

Ronny

Re: Showing news detail on a separate page

Posted: Thu May 24, 2007 3:52 pm
by Anastasis
Perfect - it works great!

Thank you calguy1000 and RonnyK

I would like to find an automated way of showing "related news" on our news stories. I think this could be done by using the news category, but I am not sure how. However, so as to not mix up this thread I will start a new thread with the question.