[ 
https://issues.apache.org/jira/browse/OFBIZ-3719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12858473#action_12858473
 ] 

Deepak Dixit commented on OFBIZ-3719:
-------------------------------------

Hello Scott,

These (html , head, body) are included in headerhead.ftl template that are used 
in main-decorator.For ecommerce DOCTYPE is not included in headerhead.ftl , It 
is included through HtmlScreenRenderer.java. So if we use same headerhead.ftl 
for screens and cms then it works fine for screens, But in case of CMS DOCYPE 
is not included.There for I have added it in CmsEvents.java for CMS so that we 
can use same headerhead for both (CMS content and non CMS content).

It is good idea to include <html xmlns="http://www.w3.org/1999/xhtml";> in 
renderScreenBegin method of HtmlScreenRenderer.java and </html> in 
renderScreenEnd method of HtmlScreenRenderer.java.

But we need to add meta and script tag in headerhead.ftl according to 
requirement so we can not add them here.




> Include DOCTYPE at the begining of CMS driven html page.
> --------------------------------------------------------
>
>                 Key: OFBIZ-3719
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3719
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: specialpurpose/cmssite
>    Affects Versions: SVN trunk
>            Reporter: Deepak Dixit
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-3719.patch
>
>
> Include DOCTYPE at the begining of html pages, that are render through cms.
> Currently DOCTYPE is included in HtmlHead.ftl for cms.
> By doing so the DOCT YPE is always included on the top of the page before 
> rendering single HTML statement.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to