Page 1 of 1

[workaround] news module Error 500 on using custom template.

Posted: Fri Mar 30, 2007 8:59 am
by tshirtman
Hi,
I'm using cmsms1.0.4 on linux(2.6.17.7)  and everything seems ok, I put a {news} in the home page template, that's ok, but I want the news details to be displayed using a different template as the home page (mainly to don't get the list of news under the news details).

Code: Select all

{news number='5' category='General' dateformat="%d/%m/%y" detailtemplate="news.tpl"}
I put a template (the same as my home page but without the call of news module) in /modules/News/templates/ but it result in getting an "unexpected error" (500) when I clic on the "more..." button. I don't get the issue, Any Idea?
Error 500 - Internal server error

Un problème inattendu est survenu.
Veuillez réessayer ultérieurement.
If you need more info just ask ;)
thanks in advance.

Re: news module Error 500 on using custom template.

Posted: Fri Mar 30, 2007 10:05 am
by RonnyK
Did you check the rights on the template you put there.

I personally don't use it like this, I work with 'detailpage' instead. If you do so, you can attach the different template to that specific detailpage. Besides with the use of detailpage, you push the news-content to the content-area, so there might not even be the need to have a specific template, the detailpage can have its own title 'News' f.e.

I created a page called 'News', on the options-tab, unchecked 'Visible in menu', and give 'detailpage='News'' as a parameter instead of the template.

Ronny

Re: news module Error 500 on using custom template.

Posted: Fri Mar 30, 2007 10:37 am
by tshirtman
The permissions are set to 755... I had tryied your way too, and had issues too (and this way seemed more "clean" from a programming point of view) , but now it works, think I'll stick with it.  ;D.

thanks !

Re: [workaround] news module Error 500 on using custom template.

Posted: Fri Mar 30, 2007 10:45 am
by RonnyK
Where the rights on the folders under Modules/News also open? I mean 'News' self and 'templates' as well.

Ronny

Re: [workaround] news module Error 500 on using custom template.

Posted: Fri Mar 30, 2007 10:52 am
by tshirtman
yes, 755 for everyfile... users and groups are the same for everybody too...  ???