[MGNLSTK-1054] News overview does not display the news in a new site if the date is missing Created: 14/Dec/12  Updated: 08/Jul/13  Resolved: 08/Jul/13

Status: Closed
Project: Magnolia Standard Templating Kit (closed)
Component/s: paragraphs, templates
Affects Version/s: 2.0.7
Fix Version/s: 2.0.9

Type: Improvement Priority: Neutral
Reporter: Teresa Miyar Assignee: Jaroslav Simak
Resolution: Fixed Votes: 0
Labels: news, news_overview
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen shot 2012-12-14 at 9.17.34 AM.png     PNG File Screen shot 2012-12-14 at 9.17.56 AM.png    
Issue Links:
Cloners
is cloned by MGNLSTK-1205 CLONE - News overview does not displa... Closed
dependency
depends upon MGNLUI-488 Mixin mgnl:created is not set when ne... Closed
Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

I create a new site definition by copying the default, and adding a new mapping for my new site.
Then create a structure home page, newsoverview and news.
opening news overview does not give any result.

This is due to the fact that when you create a news page, it does not autogenerate a date for the news item. However, this is required for it to show up on the news overview.

Two possibilities to circumvent this issue:

  • Have stkNewsOverview display news without date (at the end of the list).
  • Autogenerate a date for news pages (current date).


 Comments   
Comment by Jaroslav Simak [ 21/Dec/12 ]

I dont think this is an issue. NewsOverviewModel just works with dates and picks News between given dates. I see this as correct behaviour. To ignore dates or change filtering behaviour i would create new model class and change method void filter(List<Node> itemList).

Comment by Jaroslav Simak [ 04/Jan/13 ]

Cannot port it to 5.0 until MGNLUI-488 is fixed.

Comment by Jaroslav Simak [ 08/Jul/13 ]

I am closing this ticket because it was fixed on 2.0.9 - link to git

Generated at Mon Feb 12 07:32:56 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.