News Module - Detail view on a different page template?

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
kalozura
Forum Members
Forum Members
Posts: 39
Joined: Sun Jan 27, 2008 12:03 am

News Module - Detail view on a different page template?

Post by kalozura »

Hello every one

Is there a way to have the details view be displayed on a different page template? (not a news details template)
currently I have the summary view displaying 2 columns one for the posts and the other for the categories. But in detail View i just want to show the post and not the column on the right with the categories.

Is there a way to do that?

Thanks
KZ
User avatar
korpirkor
Forum Members
Forum Members
Posts: 100
Joined: Sun Oct 28, 2007 1:15 pm

Re: News Module - Detail view on a different page template?

Post by korpirkor »

Create new page ("Newss") with your template.

{cms_module module="news" detailpage="Newss"}
[url=http://www.polishwebdesign.pl/]Polish WebDesign Cezary Nowak
Projektowanie stron WWW[/ur]
kalozura
Forum Members
Forum Members
Posts: 39
Joined: Sun Jan 27, 2008 12:03 am

Re: News Module - Detail view on a different page template?

Post by kalozura »

I had tried something like this but didn't work: {news number='9' detailpage="Newss"}

I will try it your way {cms_module module="news" detailpage="Newss"}

thanks!
User avatar
korpirkor
Forum Members
Forum Members
Posts: 100
Joined: Sun Oct 28, 2007 1:15 pm

Re: News Module - Detail view on a different page template?

Post by korpirkor »

Newss is just page alias
[url=http://www.polishwebdesign.pl/]Polish WebDesign Cezary Nowak
Projektowanie stron WWW[/ur]
kalozura
Forum Members
Forum Members
Posts: 39
Joined: Sun Jan 27, 2008 12:03 am

Re: News Module - Detail view on a different page template?

Post by kalozura »

I created a new page called "Details" and has the same alias, then on the news section I added {cms_module module="news" detailpage="Details"} but nothing is happening. Am I doing something wrong?
User avatar
korpirkor
Forum Members
Forum Members
Posts: 100
Joined: Sun Oct 28, 2007 1:15 pm

Re: News Module - Detail view on a different page template?

Post by korpirkor »

In my case it works fine ( I have even crated Details page :P )
[url=http://www.polishwebdesign.pl/]Polish WebDesign Cezary Nowak
Projektowanie stron WWW[/ur]
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: News Module - Detail view on a different page template?

Post by RonnyK »

kalozura,

be aware that the page you are pointing at, is the pagealias of a page. Normally these pages dont have Capitals, so a page created called "Details", will have an default alias called "details", this is visible on the options-tab of the created page.

In your case, I would create a page called "Details", with the alias "details" and "show in menu" unchecked. Attach that page to the template you want. When calling News, with the detailpage-parameter, the details will open in that page, holding that template.

Ronny
Post Reply

Return to “CMSMS Core”