[MGNLSTK-737] Contact paragraph throws freemarker error Created: 20/Jan/11  Updated: 20/Jan/11  Due: 21/Jan/11  Resolved: 20/Jan/11

Status: Closed
Project: Magnolia Standard Templating Kit (closed)
Component/s: demoproject, paragraphs
Affects Version/s: 1.4.1
Fix Version/s: 1.4.2

Type: Bug Priority: Major
Reporter: Boris Kraft Assignee: Federico Grilli
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Magnolia 4.4.1 demoauthor


Attachments: XML File data.contacts.bkraft.xml    
Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

Go to our demo website, add a new contact in the data module, go to an article page, add a contact paragraph in the "extra" column, select the newly created contact. You will get a freemarker error as follows:

FreeMarker template error!

Expression model.contact.web is undefined on line 104, column 63 in templating-kit/paragraphs/teasers/contact.ftl.
The problematic instruction:
----------
==> ${model.contact.web?html} [on line 104, column 61 in templating-kit/paragraphs/teasers/contact.ftl]
----------

I have attached my test contact entry.



 Comments   
Comment by Philipp Bärfuss [ 20/Jan/11 ]

We should better fix STKUtil.getExternalLink() so that it doesn't prefix empty strings with http://

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