[opencms-dev] OpenCMS JSP template

Junaid Sarfraz junaidbinsarfraz at yahoo.com
Mon Apr 18 11:54:48 CEST 2016


I put added template=provider=org.opencms.loader.CmsDefaultTemplateContextProvider to the template provider's property. But result is same, still unable to pick the (default) resources.
Thanks,Junaid 

    On Monday, April 18, 2016 2:00 PM, Christoph Kukulies <kuku at physik.rwth-aachen.de> wrote:
 

  Isn't it that the template property wouldn't have  to look something like:
 
 template= provider=org.opencms.loader.CmsDefaultTemplateContextProvider,template=/system/modules/my.first.module/templates/main.jsp
 
 
 Am 18.04.2016 um 08:59 schrieb Junaid Sarfraz:
  
  I put the my question here and here too 
    
|    |   
OpenCMS JSP template · Issue #385 · alk...
  | 
  |

  
  
  I am using opencms 10.  
  Well have created simple jsp template by following [this][1] link 
      <%@page buffer="none" session="false" trimDirectiveWhitespaces="true" %>     <%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>     <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>     <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>     <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>     <!DOCTYPE html>     <html>      <head>           <cms:enable-ade />           </head>      <body>           <div id="header">      <cms:container name="headercontainer" type="header" maxElements="1" />           </div>           <div id="window">      <cms:container name="centrecontainer" type="center" maxElements="8" detailview="true"/>      </div>           <div id="footerColumn">      <cms:container name="footercontainer" type="footer" maxElements="1"/>      </div>      </body>     </html> 
  say it is `main.jsp`. After this I created a new `container-page` say `my-fist-template.html` and set following property  
      template = /system/modules/my.first.module/templates/main.jsp 
  Then I created a new *resource type* say *myResourceType*. I also created xsd and formatter for newly created resource type.  
  After this I opened `my-fist-template.html` for editing. I was **unable** to add layout, simple slider, flexible content etc (every/default resource types created by opencms) **BUT** I was able to put my newly created resource type *`myResourceType`*.  
  What am I missing? 
  
    [1]: OpenCms Documentation | Creating a template JSP 
    
| 
  |

    
 
 -- 
 Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de  
_______________________________________________
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/20160418/9d56440b/attachment-0001.htm>


More information about the opencms-dev mailing list