Page 1 of 1
Hi! How to display the details of News on the page
Posted: Sat Jan 06, 2007 2:51 pm
by watexon
I have separate page to display news divided in 2 column. First shows news titles only. In second I want to show whole details of the latest news (just one news, without others). I encountered a problem. I thought that {cms_module module='news' number='1' detailtemplate='mytemplate.tpl'} sorts it, but not.
What is the way to display whole news details in the begining. Please help!
Re: Hi! How to display the details of News on the page
Posted: Sat Jan 06, 2007 3:33 pm
by watexon
I just switched something. I've made a copy of detailtemplate and saved in proper place. Then I decided to fool CMSMS and instead of asking cms to show "detailtemplate", I asked of "summarytemplate="detailtemplate.tpl". It worked, BUT cms fooled me back. Instead of showing the latest news it shows the oldest.
Please help! I feel like loosing this war

I NEED BACK-UP!
Re: Hi! How to display the details of News on the page
Posted: Sat Jan 06, 2007 3:55 pm
by watexon
Now after trying everything I find what the problem really is: new templates I've created doesn't work at all! I put them to modules/news/templates So the problem seems to me now even more complicated. I surrender

Re: Hi! How to display the details of News on the page
Posted: Sat Jan 06, 2007 5:11 pm
by Dr.CSS
If you copied and put the detail template in the folder, make sure it has .tpl on the end, modules/news/templates, then used {news summarytemplate='thenameofyourtemplate.tpl'} it will show the news articles in the detail mode, note single quotes...
As for showing the oldest that would have to do with whether you set category or order='asc' or desc or if the news article has expiration date set...
I think?...
Re: Hi! How to display the details of News on the page
Posted: Mon Jan 08, 2007 1:34 am
by watexon
I solved that problem

It seems to me that server I've instaled on my pc isn't always right. Sometimes it requires restart to work properly. I think that makes most of the problems. Now it works just like I want it to. Thanks anyway.
By the way CMCMS is realy good system to learn and practise on, and css friendly enviroment makes it even more atractive. Good work! Thanks!