I continue the way and my recent success :
* set the object theme always present for macro rendering
* create a theme that extends common-theme and specially the htmlFormMacroLibrary with surchage only the renderDisplayField macro like that

<#include "component://common-theme/template/macro/HtmlFormMacroLibrary.ftl"/>
<#macro renderDisplayField type imageLocation idName description title class alert 
inPlaceEditorUrl="" inPlaceEditorParams="">
    <#if description?has_content>
    **${description?replace("\n", "<br />")}**<#t/>
    <#else>
        &nbsp;<#t/>
    </#if>
</#macro>

Next step, I will try to surchage only one decorator

All my work has been committed on my git repo https://github.com/nmalin/ofbiz-framework/tree/common-theme

Nicolas

Le 21/07/2017 à 18:26, Nicolas Malin a écrit :
[...]

On Tue, Jul 18, 2017 at 5:38 PM, Nicolas Malin <[email protected]> wrote:
Michael,

I finished to restore my work on common-theme from ofbiz to ofbiz-framework
:
https://github.com/apache/ofbiz-framework/compare/trunk...nmalin:common-theme?expand=1

Now I will work on the java object to manage the widget theme on user
session.

Nicolas

--
logoNrd <https://nereide.fr/>
         Nicolas Malin
The apache way <http://theapacheway.com/> : *Openness* Technical decisions
are made publicly
[email protected]
8 rue des Déportés 37000 TOURS, 02 47 50 30 54

Apache OFBiz <http://ofbiz.apache.org/>|The Apache Way
<http://theapacheway.com/>|ofbiz-fr <http://www.ofbiz-fr.org/>|réseau LE
<http://www.libre-entreprise.org/>





Reply via email to