[MGNLSTK-519] Error with Magnolia-Blogs data Created: 11/Nov/09  Updated: 23/Jan/13  Resolved: 11/Nov/09

Status: Closed
Project: Magnolia Standard Templating Kit (closed)
Component/s: None
Affects Version/s: 1.1.2
Fix Version/s: 1.2

Type: Bug Priority: Major
Reporter: Olivier Marti Assignee: Jan Haderka
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

When installing a fresh Magnolia 4.2 Beta EE Instance the data of Magnolia Blogs is empty, after importing it and try to display the page /demo-features/aggregation-paragraphs/rss-aggregation.html a freemarker error is the result:

Expression feed.title is undefined on line 51, column 28 in templating-kit/paragraphs/teasers/stkTeaserSingleFeed.ftl.



 Comments   
Comment by Olivier Marti [ 11/Nov/09 ]

I think acutaly the problem is, that there is no more HTML-Tag removing happening. So the problem only occurs with an early cut-off.
In JSP we used the following line: descriptionToCut = descriptionToCut.replaceAll("<[^>]*>", StringUtils.EMPTY);
which now should be implemented in the model class, before rendering.

Comment by Jan Haderka [ 11/Nov/09 ]

How can description cut off cause "feed.title is undefined"? Since the ${feed.title} doesn't allow the empty title, that is exactly what happens if the title is empty for any given feed.

Comment by Jan Haderka [ 11/Nov/09 ]

Title is no longer mandatory and when missing it will be simply omitted by the template.

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