Page 1 of 1

Setting action='details' on News module causes 404 Not Found

Posted: Wed May 06, 2015 10:04 pm
by nexious
On a specific page, I would like to display the full news article contents (not summary view) when the user accesses the page directly. So in this page I place the tag:

Code: Select all

{news action='details' number='3'}
But as soon as I save the page with the action='details' attribute added, it becomes impossible to access the page at all, instead giving me a 404 Not Found error. This happens even in the default install of CMS and online demo. What am I doing wrong, and how would I go about skipping the summary news and displaying the full text on the page?

Re: Setting action='details' on News module causes 404 Not F

Posted: Wed May 06, 2015 11:17 pm
by Dr.CSS
Because that is not how that parameter is meant to be used...

"detail" - to display a specified articleid in detail mode.

If you just want t6o see the 'detail' of a news article then don't put anything in the summary edit box, you can even set News to not show the summary box at all, just make sure the detail content call is in the news summary template as in the default...

Re: Setting action='details' on News module causes 404 Not F

Posted: Thu May 07, 2015 11:57 am
by velden
You can you it this way ONLY IF you specify an articleid parameter (like DrCss already said)
action="detail" - to display a specified articleid in detail mode.
(optional) articleid="" - This parameter is only applicable to the detail view. It allows specifying which news article to display in detail mode. If the special value -1 is used, the system will display the newest, published, non expired article.


I see you're trying to list 3 items (probably latest). Then indeed use the (default) 'summary' action and create a summary template that looks like a detail template. All information to make that is available in the summary template as well.