<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi Clement,</p>
<p>which component did you drag to your template?<br>
</p>
<p>The navigation your included did varnish after reload as well?</p>
<p>Best,<br>
Tobias<br>
</p>
<br>
<div class="moz-cite-prefix">Am 06.03.2017 um 03:27 schrieb Clement
Wee:<br>
</div>
<blockquote
cite="mid:CAM8TMLCtZwdW==4WZCby-r3hbbWF5P8k=kG5jX-4Ywncs58bGQ@mail.gmail.com"
type="cite">
<div dir="ltr">Dear OpenCMS Admin,
<div><br>
</div>
<div>I created a custom module that contains javascript.
Following advice from a recent post on this mailing list, I
included the ${cms.enableReload} command so that the script
result refreshes on every edit.</div>
<div><br>
</div>
<div>However, now when I drag the component over my template,
the whole page refreshes and then the component disappears
along with any other component added prior to adding that
component.</div>
<div><br>
</div>
<div>My template is a custom template with navigation.</div>
<div><br>
</div>
<div>Here is the template in entirety:-</div>
<div><br>
</div>
<div>
<div><%@page buffer="none" session="false"
trimDirectiveWhitespaces="true" %></div>
<div><%@ taglib prefix="cms" uri="<a moz-do-not-send="true"
href="http://www.opencms.org/taglib/cms">http://www.opencms.org/taglib/cms</a>"
%></div>
<div><%@ taglib prefix="fmt" uri="<a moz-do-not-send="true"
href="http://java.sun.com/jsp/jstl/fmt">http://java.sun.com/jsp/jstl/fmt</a>"
%></div>
<div><%@ taglib prefix="fn" uri="<a moz-do-not-send="true"
href="http://java.sun.com/jsp/jstl/functions">http://java.sun.com/jsp/jstl/functions</a>"
%></div>
<div><%@ taglib prefix="c" uri="<a moz-do-not-send="true"
href="http://java.sun.com/jsp/jstl/core">http://java.sun.com/jsp/jstl/core</a>"
%></div>
<div><html></div>
<div><head><span class="gmail-Apple-tab-span" style="white-space:pre"> </span></div>
<div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><cms:headincludes
type="css" /></div>
<div> <span class="gmail-Apple-tab-span" style="white-space:pre"> </span><cms:headincludes
type="javascript" /> </div>
<div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><cms:enable-ade
/></div>
<div></head></div>
<div><body></div>
<div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><cms:include
file="%(link.weak:/system/modules/com.elixirtech.opencms/elements/main-nav.jsp:169a79fe-ff14-11e6-ba85-a75a6890411c)"/></div>
<div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><cms:container
name="elx-main-content" type="element" width="500"
maxElements="8" detailview="true"/></div>
<div></body></div>
<div></html><br>
<br>
The include is:-<br>
<br>
<div><%@page taglibs="c,cms" %> </div>
<div><c:set var="navStartLevel">1</c:set></div>
<div><cms:navigation type="treeForFolder"
startLevel="${navStartLevel}" endLevel="4" var="nav"/></div>
<div><ul class="nav-side list-group sidebar-nav-v1"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span></div>
<div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><c:forEach
items="${nav.items}" var="elem"></div>
<div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><li
class='nav-side-level-${elem.navTreeLevel -
navStartLevel} </div>
<div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>
list-group-item </div>
<div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>
${!elem.navigationLevel &&
nav.isActive[elem.resourceName]?"active":""}'></div>
<div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><a
href="<cms:link>${elem.resourceName}</cms:link>">${elem.navText}</a></div>
<div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span></li></div>
<div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span></c:forEach></div>
<div></ul></div>
</div>
</div>
<div><br>
</div>
<div>as gotten directly from the tutorial.<br>
<br>
Could someone please explain why the vanishing act occurs?<br>
<br>
<br>
Regards,</div>
<div>Clement</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
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
<a class="moz-txt-link-freetext" href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>