[workaround] news module Error 500 on using custom 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.
Locked
tshirtman

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

Post 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.
Last edited by tshirtman on Fri Mar 30, 2007 10:38 am, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: news module Error 500 on using custom template.

Post 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
Last edited by RonnyK on Fri Mar 30, 2007 10:08 am, edited 1 time in total.
tshirtman

Re: news module Error 500 on using custom template.

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

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

Post by RonnyK »

Where the rights on the folders under Modules/News also open? I mean 'News' self and 'templates' as well.

Ronny
tshirtman

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

Post by tshirtman »

yes, 755 for everyfile... users and groups are the same for everybody too...  ???
Locked

Return to “CMSMS Core”