<div dir="ltr"><div>Awesome. <br><br>Many Manay thanks Filip. It really helped me to understand the concept. I will implement tomorrow.<br><br></div>Thanks again for your sincere help. I have been struggling for quite some time. <br><div><br></div><div>-Ashish<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 7, 2015 at 4:57 PM, Filip Kratochvil <span dir="ltr"><<a href="mailto:filip.kratochvil@nelasoft.cz" target="_blank">filip.kratochvil@nelasoft.cz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="CS"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">best way is look into demo modules (com.alkacon.bootstrap.formatters and com.alkacon.bootstrap.schmas), you will understand it really quickly.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Or watch this source code:<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><a href="https://github.com/alkacon/modules-v8/tree/branch_9_5_x/modules/com.alkacon.bootstrap.formatters/resources/system/modules/com.alkacon.bootstrap.formatters" target="_blank">https://github.com/alkacon/modules-v8/tree/branch_9_5_x/modules/com.alkacon.bootstrap.formatters/resources/system/modules/com.alkacon.bootstrap.formatters</a><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>-<span style="font:7.0pt "Times New Roman"">          </span></span></span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">containerpage just describes which xmlcontent is placed in which container<u></u><u></u></span></p><p><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>-<span style="font:7.0pt "Times New Roman"">          </span></span></span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">containerpage is rendered using main template<u></u><u></u></span></p><p><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>-<span style="font:7.0pt "Times New Roman"">          </span></span></span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">so you need to create template, some containerpage a and some xmlcotents<u></u><u></u></span></p><p><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>-<span style="font:7.0pt "Times New Roman"">          </span></span></span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">than place xmlcontent on the page (position will be written in to the containerpage)<u></u><u></u></span></p><p><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>-<span style="font:7.0pt "Times New Roman"">          </span></span></span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">xmlcontent will be rendered using fomatter (here is placed code for fetching data from xmlcontent)<u></u><u></u></span></p><p><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><span>-<span style="font:7.0pt "Times New Roman"">          </span></span></span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">you can place more elements (it means xmlcontents) in one container, you can create more containers in your template (from version 9.5 you can create nested containers – they can be placed in formatters, not only in main template…)<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Example of main template:<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><%@page buffer="none" session="false" trimDirectiveWhitespaces="true" %><%--<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">--%><%@ taglib prefix="cms" uri="<a href="http://www.opencms.org/taglib/cms" target="_blank">http://www.opencms.org/taglib/cms</a>" %><%--<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">--%><%@ taglib prefix="fmt" uri="<a href="http://java.sun.com/jsp/jstl/fmt" target="_blank">http://java.sun.com/jsp/jstl/fmt</a>" %><%--<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">--%><%@ taglib prefix="fn" uri="<a href="http://java.sun.com/jsp/jstl/functions" target="_blank">http://java.sun.com/jsp/jstl/functions</a>" %><%--<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">--%><%@ taglib prefix="c" uri="<a href="http://java.sun.com/jsp/jstl/core" target="_blank">http://java.sun.com/jsp/jstl/core</a>" %><%--<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">--%><fmt:setLocale value="${cms.locale}" /><!DOCTYPE html><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><html lang="en"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><head><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">                <title>OpenCms | ${cms.title}</title><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"></head><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><body><u></u><u></u></span></p><span class=""><p class="MsoNormal" style="text-indent:35.4pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><cms:container name="centercontainer" type="center" width="500" maxElements="8" detailview="true"/><u></u><u></u></span></p></span><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"></body><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"></html><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Example of xmlcontent formatter:<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><%@page buffer="none" session="false" trimDirectiveWhitespaces="true" %><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><%@ taglib prefix="cms" uri="<a href="http://www.opencms.org/taglib/cms" target="_blank">http://www.opencms.org/taglib/cms</a>" %><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><%@ taglib prefix="c" uri="<a href="http://java.sun.com/jsp/jstl/core" target="_blank">http://java.sun.com/jsp/jstl/core</a>" %><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><%@ taglib prefix="fmt" uri="<a href="http://java.sun.com/jsp/jstl/fmt" target="_blank">http://java.sun.com/jsp/jstl/fmt</a>" %><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><%@ taglib prefix="fn" uri="<a href="http://java.sun.com/jsp/jstl/functions" target="_blank">http://java.sun.com/jsp/jstl/functions</a>" %><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><cms:formatter var="content" val="value" rdfa="rdfa"><u></u><u></u></span></p><span class=""><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><div class="contentBox"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">        <div class="innerBox"><u></u><u></u></span></p></span><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">            <div class="contentTitle">}>${value.Headline}</div><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">              <div class="contentText">}>${value.Text}</div><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">        </div><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"></div><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"></cms:formatter><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Look at the demo modules;)<u></u><u></u></span></p><span class=""><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">--<br>S pozdravem / Regards<br>Filip Kratochvil<br>------------------------------------------------<br>NELASOFT Technologies, s.r.o.</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><br></span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">E-mail: </span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><a href="mailto:filip.kratochvil@nelasoft.cz" target="_blank">filip.kratochvil@nelasoft.cz</a><br></span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Web:</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> <a href="http://www.nelasoft.cz/" target="_blank">www.nelasoft.cz</a><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Twitter: </span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><a href="https://twitter.com/NELASOFT" target="_blank">@NELASOFT</a></span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p></span><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Ashish Shekhar [mailto:<a href="mailto:ashish.shekharcsc@gmail.com" target="_blank">ashish.shekharcsc@gmail.com</a>] <br><b>Sent:</b> Tuesday, July 07, 2015 12:44 PM<br><b>To:</b> The OpenCms mailing list; <a href="mailto:filip.kratochvil@nelasoft.cz" target="_blank">filip.kratochvil@nelasoft.cz</a></span></p><div><div class="h5"><br><b>Subject:</b> Re: [opencms-dev] issue with content manager<u></u><u></u></div></div><p></p><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div><div><div><div><div><p class="MsoNormal" style="margin-bottom:12.0pt">Thanks Filip. I am able to add empty container into the containerpage.<u></u><u></u></p></div><p class="MsoNormal" style="margin-bottom:12.0pt">I am able to add the content on the page through empty container but I want to add content between the HTML element.<br><br>How can I make it dynamic. The Title and content marked yellow below should be fetch by content type.<br><br><div class="contentBox"><br>        <div class="innerBox"><br>            <div class="contentTitle"><span style="background:yellow">The Title of an Article</span></div><br>              <div class="contentText"><br>                <p><span style="background:yellow">You may use this template on any site, anywhere, for free just please</span></p><br /><br>              </div><br>        </div><br></div><u></u><u></u></p></div><p class="MsoNormal">I have replaced the above whole piece of html with <cms:container name="centercontainer" type="center" width="500" maxElements="8" detailview="true"/> for which I am able to drag and drop of user defined content type. How can I make it dynamic so that the proper alignment and css would be implemented and content looks good.<u></u><u></u></p></div><div><p class="MsoNormal">Could you please point to the right tutorial/guide? Any example would be helpful.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">Thanks,<u></u><u></u></p></div><p class="MsoNormal">Ashish  <u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">On Tue, Jul 7, 2015 at 1:36 PM, Filip Kratochvil <<a href="mailto:filip.kratochvil@nelasoft.cz" target="_blank">filip.kratochvil@nelasoft.cz</a>> wrote:<u></u><u></u></p><div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi Ashish, try to add empty container into your containerpage (only fill container name and type).</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">--<br>S pozdravem / Regards<br>Filip Kratochvil<br>------------------------------------------------<br>NELASOFT Technologies, s.r.o.</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><br></span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">E-mail: </span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><a href="mailto:filip.kratochvil@nelasoft.cz" target="_blank">filip.kratochvil@nelasoft.cz</a><br></span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Web:</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> <a href="http://www.nelasoft.cz/" target="_blank">www.nelasoft.cz</a></span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:black">Twitter: </span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><a href="https://twitter.com/NELASOFT" target="_blank">@NELASOFT</a></span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.org</a> [mailto:<a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.org</a>] <b>On Behalf Of </b>Ashish Shekhar<br><b>Sent:</b> Tuesday, July 07, 2015 9:33 AM<br><b>To:</b> The OpenCms mailing list<br><b>Subject:</b> Re: [opencms-dev] issue with content manager</span><u></u><u></u></p><div><div><p class="MsoNormal"> <u></u><u></u></p><div><div><p class="MsoNormal" style="margin-bottom:12.0pt">Anyone have idea on this?<u></u><u></u></p></div><p class="MsoNormal">-Ashish<u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p><div><p class="MsoNormal">On Mon, Jul 6, 2015 at 9:26 PM, Ashish Shekhar <<a href="mailto:ashish.shekharcsc@gmail.com" target="_blank">ashish.shekharcsc@gmail.com</a>> wrote:<u></u><u></u></p><div><p class="MsoNormal">I am trying to create a webpage from scratch. I have followed the steps for creating the template and for body content I have replaced html with  <code><span style="font-size:10.0pt"><cms:container></span></code><u></u><u></u></p><div><div><p class="MsoNormal">which should enable the content manager to place elements easily via “drag & drop”.<u></u><u></u></p><div><pre style="margin-bottom:12.0pt"><code><cms:container name="centercontainer" type="center" width="500" maxElements="8" detailview="true"/></code><u></u><u></u></pre><pre style="margin-bottom:12.0pt"><code>After placing this, no drag & drop features are enabled. Could anyone please help, what could the reason?</code><u></u><u></u></pre><pre><code>Thanks,</code><br><code>Ashish</code><u></u><u></u></pre></div></div></div></div></div><p class="MsoNormal"> <u></u><u></u></p></div></div></div></div></div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>_______________________________________________<br>This mail is sent to you from the opencms-dev mailing list<br>To change your list options, or to unsubscribe from the list, please visit<br><a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br><br><br><br><u></u><u></u></p></div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div></div></blockquote></div><br></div>