[opencms-dev] OpenCMS 8 & HTML 5

Rafa Dominguez rdvbcn at gmail.com
Tue Oct 2 13:23:45 CEST 2012


Hi,
I'm developing my first html5 template , but when I insert
the label <cms:enable-ade/> stops working properly.
If I remove this tag works correctly but that page can not be edited.
Main.jsp code is:


<!DOCTYPE html>
<%@page import="org.opencms.jsp.CmsJspActionElement"%>
<%@page buffer="none" session="false" taglibs="c,cms,fn"
contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%
CmsJspActionElement cms = new CmsJspActionElement(pageContext, request,
response);
%>
<html lang="<%=cms.getRequestContext().getLocale().getLanguage() %>">
 <head>
 <meta charset="${cms:vfs(pageContext).requestContext.encoding}" />
 <meta http-equiv="Content-Language"
content="<%=cms.getRequestContext().getLocale().getLanguage() %>" />
<meta name="description" content="<cms:property name="Description"
file="search" default="" />">
 <meta name="keywords" content="<cms:property name="Keywords" file="search"
default="" />">
 <meta name="robots" content="index, follow">
<meta name="revisit-after" content="7 days">
 <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><cms:info property="opencms.title" /></title>
 <link rel="stylesheet"
href="<cms:link>%(link.weak:/system/modules/com.axa.tatv.opencms/resources/css/reset.css)</cms:link>"
type="text/css" />
 <link rel="stylesheet"
href="<cms:link>%(link.weak:/system/modules/com.axa.tatv.opencms/resources/css/style.css)</cms:link>"
type="text/css" />
 <link rel="stylesheet"
href="<cms:link>%(link.weak:/system/modules/com.axa.tatv.opencms/resources/css/media-queries.css)</cms:link>"
type="text/css" />
 <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon"
href="<cms:link>%(link.weak:/system/modules/com.axa.tatv.opencms/resources/img/favicon.ico)</cms:link>"
/>
 <!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
 <![endif]-->
<script
src="<cms:link>%(link.weak:/system/modules/com.axa.tatv.opencms/resources/js/jquery.js)</cms:link>"
type="text/javascript"></script>
 <cms:enable-ade/>
<cms:headincludes type="javascript" />
 <cms:headincludes type="css" />
</head>
<body id="home">
 <div id="wrapper">
<header>
    <cms:container name="headercontainer" type="header" maxElements="1" />

 </header>
<section id="main-content">
<div id="info">
 <cms:container name="left-colcontainer" type="leftcenter"
detailview="true"/>
<aside class="sidebar">
  <cms:container name="rightcontainer" type="right" width="230"
maxElements="8" />
</aside>
 <div class="clearfix"></div>
</div>
</section>
 <cms:container name="footercontainer" type="footer" maxElements="1" />
</body>
</html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20121002/69c2ab01/attachment.htm>


More information about the opencms-dev mailing list