Showing news detail on a separate page

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
Anastasis

Showing news detail on a separate page

Post 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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Showing news detail on a separate page

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

Re: Showing news detail on a separate page

Post 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. :)
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Showing news detail on a separate page

Post 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
Anastasis

Re: Showing news detail on a separate page

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

Return to “Layout and Design (CSS & HTML)”