Page 1 of 1

News Module custom fields

Posted: Mon Jun 17, 2013 11:43 am
by chriggi
Hello everybody,

I have a website where I want to display news on the front page and news on another page called "news". (same website)
I have got this working without any problems.

Now I would prefer to only have some "special" news displayed on the homepage and all news on the "news" page. Is this possible? I could imagine doing this by adding a custom field like "special: true/false", and then somehow only fetch the news on the homepage where this field special == true.

Is this the right way?

Thanks for reading!
Regards

Re: News Module custom fields

Posted: Mon Jun 17, 2013 12:53 pm
by velden
What about the use of categories for that? Then you don't have to add a field, plus it should be more efficient.
(optional) category="category" - Used in the summary view to display only items for the specified categories. Use * after the name to show children. Multiple categories can be used if separated with a comma. Leaving empty, will show all categories. This parameter also works for the frontend submit action, however only a single category name is supported.

Re: News Module custom fields

Posted: Mon Jun 17, 2013 1:57 pm
by chriggi
Perfect! Didn't come to my mind. Thanks for that!
Greets

Re: News Module custom fields

Posted: Sat Jun 22, 2013 7:35 pm
by Rolf
chriggi wrote:Perfect!
Solved? Please add [solved] to the title of the first post
http://forum.cmsmadesimple.org/viewtopi ... =8&t=13968