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

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
nexious
New Member
New Member
Posts: 3
Joined: Mon May 04, 2015 6:02 am

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

Post 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?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

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

Post 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...
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

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

Post 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.
Post Reply

Return to “Modules/Add-Ons”