ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Heidi Dehaes - Olagos <info.ola...@gmail.com>
Subject Re: Replace ftl with html in ofbiz_2
Date Thu, 04 Feb 2016 16:31:48 GMT
1 Depends what is in your ofbiz-component.xml file as mount-point .
2 Did you define your controller.xml in webapp ?
3 Try perhaps afterwards localhost:8080/ecommerce/control/html2ftl

Regards,
Eric

Olagos bvba
Heidi Dehaes
Kerkstraat 34
2570 Duffel
Belgium
Tel. :     015/31 53 04
GSM :    0485/22 35 80
E-mail : info.olagos@gmail.com
http://www.olagos.eu
http://www.olagos.com
http://www.olagos.be
http://www.olagos.nl



2016-02-04 16:51 GMT+01:00 hoboy2 <jean.luc@novitek.dk>:

> In my investigation to use html in screen I had many answers.
>
> -----------------------------------------------------------------------------------------------------------
> If you want to use pure static html, it could be done in screens with (not
> tested but i guess it works):
>
>                         <platform-specific>
>                             <html><html-template
> location="component://mycomponent/path/to/my/index.html"/></html>
>                         </platform-specific>
>
> Or be done in ftl files directly.
>
> Gil Portenseigne
>
> -----------------------------------------------------------------------------------------------------------------------
> Because if you set only html code in a ftl file, it's work fine.
>
> Nicolas
>
> ---------------------------------------------------------------------------------------------------------------------
> Simply rename the file extension from html to ftl, is that a big deal?
>
> Jacques
>
> ------------------------------------------------------------------------------------------------------------------------
> re read the thread, all people said, you can write your html file as
> html file and name it .ftl insteadof .html
>
> Nicolas
>
> ---------------------------------------------------------------------------------------------------------------------
>
> I have tried today without success to
>
> here is the screen.xml
>
>
>         <screen name="html2ftl">
>                 <section>
>                         <actions>
>                                 <set field="tabButtonItem"
> value="html2ftl" />
>                                  <set field="pageTitle" value="HTML2FTL" />
>                 <set field="title" from-field="pageTitle" />
>                                 <set field="layoutSettings.javaScripts[]"
> value="/myapp/images/js/myapp-uxscreens.js"
>                                         global="true" />
>                                 <script
>
>
> location="component://osafe/webapp/osafe/WEB-INF/actions/custom/test.groovy"
> />
>                                 </actions>
>                         <widgets>
>                                   <decorator-screen
> name="${parameters.eCommerceDecoratorName}"
> location="${parameters.eCommerceDecoratorLocation}">
>                     <decorator-section name="title">
>                         <include-screen name="pageTitle"
> location="component://osafe/widget/EcommerceScreens.xml"/>
>                     </decorator-section>
>                                         <decorator-section name="body">
>                                                 <section>
>                                                         <widgets>
>
> <platform-specific>
>
> <html>
>
>       <html-template
>
> location="component://osafe//webapp/osafe/common/entry/custom/test2.ftl" />
>
> </html>
>
> </platform-specific>
>                                                         </widgets>
>                                                 </section>
>                                         </decorator-section>
>                                 </decorator-screen>
>                         </widgets>
>                 </section>
>         </screen>
>
> -------------------------------------------------------------------------------------------------------------------
>
>
> test2.ftlwas created as an html, but I have changed the extension it to
> ftl.
> I am surely doing something wrong because the crap is not working.
> Just for the sake of test test2.ftl was created
>
> ---------------------------------------------------------------------------------------------------------------------
> test2.ftl
> <!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;
> &quot;http://www.w3.org/TR/html4/loose.dtd&quot;>
> <html lang="en">
> <head>
> <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
> <title>HTML4</title>
>
> </head>
> <body>
>
> <div id="header">
>
> Monday Times
>
> </div>
>
> <div id="menu">
>   <ul>
>     <li>News</li>
>     <li>Sports</li>
>     <li>Weather</li>
>   </ul>
> </div>
>
> <div id="content">
> News Section
>
>
> <div id="post">
>
> News Article
>
>   <p>Ipsum lurum hurum turum ipsum lurum hurum turum ipsum lurum hurum
> turum
> ipsum
>   lurum hurum turum.</p>
>   <p>Ipsum lurum hurum turum ipsum lurum hurum turum ipsum lurum hurum
> turum
> ipsum
>   lurum hurum turum.</p>
> </div>
>
> <div id="post">
>
> News Article
>
>   <p>Ipsum lurum hurum turum ipsum lurum hurum turum ipsum lurum hurum
> turum
> ipsum
>   lurum hurum turum.</p>
>   <p>Ipsum lurum hurum turum ipsum lurum hurum turum ipsum lurum hurum
> turum
> ipsum
>   lurum hurum turum.</p>
> </div>
>
> </div>
>
> <div id="footer">
>   <p>&amp;copy; 2014 Monday Times. All rights reserved.</p>
> </div>
>
> </body>
> </html>
>
> -----------------------------------------------------------------------------------------------------------------
>
> when I called localhost:8080/html2ftl in the ecommerce nothing happen.
>
> Thanks in advance
>
>
>
>
>
>
>
>
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/Replace-ftl-with-html-in-ofbiz-2-tp4676863.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message