[opencms-dev] Container page do not show Edit Point

Nili C nilimesh at hotmail.com
Mon May 4 20:17:58 CEST 2020


Hi,

I have installed OpenCMS v11, and going through the tutorial to create the template:
        https://documentation.opencms.org/opencms-documentation/creating-a-website/creating-a-template-jsp/

I have completed Step 5, created a sub-site within the demo site, and created a "Container page" - index.html.

However, after opening the index.html, I do see the template correctly (header/footer/etc.), but I do not see any Edit Point.  Am I missing anything to not see the Edit Point?  Will greatly appreciate your help.


My module Template code for main.jsp is as follows:

<%@page buffer="none" session="false" trimDirectiveWhitespaces="true" %>
<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
               <meta http-equiv="content-type" content="text/html; charset=utf-8" />
               <meta name="description" content="Your description goes here" />
               <meta name="keywords" content="your,keywords,goes,here" />
               <meta name="author" content="Your Name" />

               <cms:enable-ade />
               <link rel="stylesheet" type="text/css" href="<cms:link>%(link.weak:/system/modules/niliTest1.template/resources/css/niliTest1.css:c0640d4e-8c0c-11ea-9349-005056893b63)</cms:link>" title="Nili Test 1" media="screen,projection" />
               <title>Nili Test 1</title>
</head>

<body>
<div id="wrap">
<!-- Header -->
<img class="feature" src="<cms:link>%(link.weak:/system/modules/niliTest1.template/resources/img/sample1.jpg:c06ff433-8c0c-11ea-9349-005056893b63)</cms:link>" width="980" height="200" alt="sample image" />
<h1><a href="index.html">Common Header</a></h1>
<p class="slogan">Common Header Text with Menu -> </p>

<!-- Menu -->
<div id="menu">
<p class="menulinks">
<strong class="hide">Main menu:</strong>
<a class="menulink active" href="index.html">Home</a><span class="hide"> | </span>
</p>
</div>


<div id="content">
<cms:container name="centercontainer" type="center"
               width="500" maxElements="8" detailview="true">
<h4>
Please add content here (EditableBy = "${container.value.EditableBy}")
</h4>
</cms:container>
<hr class="clear" />
</div>


<!-- Footer -->
<p class="centered">Common Footer</p>
<p class="centered">This is a very simple Common Footer</p>

</div>
</body>
</html>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20200504/a2a95c9b/attachment.htm>


More information about the opencms-dev mailing list