回复: Re: Changing Ofbiz's default menu html template

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

回复: Re: Changing Ofbiz's default menu html template

Lei Wu
Thanks so much Adrian for this info, I did check the commit log for file htmlMenuMacroLibrary.html, yet I still do not know how to make it effective, for now I'm still using 12.04, and it's the java file that still controls the menu html template. I updated and compiled the java file and made the menu template the format I wanted, though.

--
发自我的ONEPLUS智能手机

Adrian Crum <[hidden email]>编写:

>Check the commit log for the htmlMenuMacroLibrary.ftl file. The initial
>commit was 1517353, and there are bug fixes after that.
>
>Adrian Crum
>Sandglass Software
>www.sandglass-software.com
>
>On 12/11/2014 7:02 AM, Lei Wu wrote:
>> Thanks Adrian for this info. I will switch to a more recent version,
>> yet for now I've got to finish my try on R12, could you plz kindly
>> direct me to the Java code where the menu html template is defined ?
>> Or the patch that adds the latest menu macros ? Thanks so much in
>> advance !
>>
>> On 12/11/14, Adrian Crum <[hidden email]> wrote:
>>> Menu macros are a recent addition. In R12 the HTML is embedded in Java
>>> code.
>>>
>>> I highly recommend you use a more recent version.
>>>
>>> Adrian Crum
>>> Sandglass Software
>>> www.sandglass-software.com
>>>
>>> On 12/11/2014 3:42 AM, Lei Wu wrote:
>>>> Thanks so much Jad for your info !
>>>> I searched this file
>>>> 'framework/widget/templates/htmlMenuMacroLibrary.ftl' in trunk, and
>>>> it's exactly where I should go and do some customization. However,
>>>> this file does not exist in versions 12.04 or 13.07, and that confuses
>>>> me a lot. I'm using Ofbiz 12.04, this file does not exist in the OOTB
>>>> package at all, then where does the menu html structure come from ?
>>>> Should I just copy this file from trunk to my 12.04 version and do
>>>> some customization ?
>>>>
>>>> On 12/10/14, Jad El Omeiri <[hidden email]> wrote:
>>>>> Hi Lei,
>>>>>
>>>>> What you're asking for is
>>>>> framework/widget/templates/htmlMenuMacroLibrary.ftl
>>>>>
>>>>> But FYI, I just looked for that file now. I am not really sure about how
>>>>> good it is to change it directly.
>>>>>
>>>>> I think you could look at this to help you create a theme:
>>>>> https://cwiki.apache.org/confluence/display/OFBIZ/Visual+Themes+-+How+to
>>>>> https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+maincss.css+HTML+Element+Collection+Styles
>>>>>
>>>>> Cheers,
>>>>>
>>>>>
>>>>>
>>>>> -----
>>>>> Jad El Omeiri
>>>>> --
>>>>> View this message in context:
>>>>> http://ofbiz.135035.n4.nabble.com/Changing-Ofbiz-s-default-menu-html-template-tp4659527p4659530.html
>>>>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>>>>
>>>