[DOCU-125] Location of content type meta element in templating examples Created: 17/Feb/11 Updated: 09/Mar/11 Resolved: 25/Feb/11 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | content |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Antti Hietala | Assignee: | Ruth Stocks |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
| Date of First Response: |
| Description |
|
The content type meta element is in the wrong place in the templating examples: <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <html> <head> <title>Template Title</title> </head> It should be inside the head: <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Template Title</title>
</head>
Also, the following expression in the JSP examples is redundant. You don't need to declare the content type because the files are not served from docroot. They are served from the /templates folder inside the webapp, which means the servlet already knows the content type. (Setting the taglib is necessary.) <%@ page contentType="text/html;charset=UTF-8" language="java" %>}} To do:
http://documentation.magnolia-cms.com/templating/introduction.html#Createthetemplatescript |
| Comments |
| Comment by Ruth Stocks [ 25/Feb/11 ] |
|
page updated |