Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCU-125

Location of content type meta element in templating examples

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • None
    • None
    • content
    • None

    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:

      • Move the meta elements inside the head in both languages in all examples.
      • Remove the redundant declaration from JSP examples.

      http://documentation.magnolia-cms.com/templating/introduction.html#Createthetemplatescript

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              ruths Ruth Stocks
              ahietala Antti Hietala
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR