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

Gerd Schrick mail at schrick-design.de
Tue May 5 18:13:59 CEST 2020


Hi Nili,

I tested your template code in one of my sites - it's OK, Edit Point shows up as expected.

"created a sub-site within the demo site"
I never used the Demo site for any testing (I don't like its complexity), so I assume that it is something related to the site.
Maybe someone else here can give you some helpful hints.

The site I tested your template in is a simple (customer) site I created with the steps described in the mentioned tutorial.

Best regards,
Gerd


>     Nili C <nilimesh at hotmail.com> hat am 4. Mai 2020 20:17 geschrieben:
> 
> 
>     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>
> 
> 
> 
>     _______________________________________________
>     This mail is sent to you from the opencms-dev mailing list
>     To change your list options, or to unsubscribe from the list, please visit
>     http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
> 
> 
> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20200505/3940bb6f/attachment.htm>


More information about the opencms-dev mailing list