[MGNLSTK-934] Redirect template generate exception during rendering Created: 28/Mar/12 Updated: 29/Mar/12 Resolved: 29/Mar/12 |
|
| Status: | Closed |
| Project: | Magnolia Standard Templating Kit (closed) |
| Component/s: | templates |
| Affects Version/s: | 2.0.1 |
| Fix Version/s: | 2.0.2 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Eric Hechinger | Assignee: | Eric Hechinger |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Template: |
|
| Acceptance criteria: |
Empty
|
| Date of First Response: |
| Description |
|
Creating a new page of template type Redirect and defining an external page (type the complete url, e.g. 'www.magnolia-cms.com') generate the following exception: 012-03-28 12:30:26,396 ERROR freemarker.runtime : Template processing error: "Expression model.externalLink is undefined on line 34, column 70 in templating-kit/pages/functional/redirectMain.ftl." Expression model.externalLink is undefined on line 34, column 70 in templating-kit/pages/functional/redirectMain.ftl. Java backtrace for programmers: |
| Comments |
| Comment by Eric Hechinger [ 28/Mar/12 ] |
|
FTL modified |
| Comment by Jan Haderka [ 29/Mar/12 ] |
|
since cmsfn doesn't cache the calls, can we extract external link in a variable rather then generating it twice? |
| Comment by Eric Hechinger [ 29/Mar/12 ] |
|
Changed the groovy file in order to extract the external link. |