Application submenu creation

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

Application submenu creation

JulienNicolas
Hi all,

I try to create new theme and I would like to know where is defined the
dropdown submenu html structure.
My goal is to change div and ul sequence to match with bootstrap framework.
I find something in framework/widget/src/org/ofbiz/widget/html but
nothing that I try to modified work...

What I can't understand is why this submenu is not defined in the .ftl
as the application menu... I think I missed something important.

My other track is to disable the automatic submenu definition for my
theme and use .ftl to define my own submenu structure.

Thanks for your help,


Julien NICOLAS
Nomaka
Reply | Threaded
Open this post in threaded view
|

Re: Application submenu creation

Rong Nguyen
Hi Julien,
Try "HtmlMenuRenderer.java" in "framework/widget/src/org/ofbiz/widget/html",
put some changes in  "renderLink" method, rebuild and view your desired
changes.
Your path is a good point to start!

*Rong Nguyen, Olbius JSC*
*195 Kham Thien - Viet Nam*

On Fri, Apr 4, 2014 at 4:39 AM, Julien NICOLAS <[hidden email]>wrote:

> Hi all,
>
> I try to create new theme and I would like to know where is defined the
> dropdown submenu html structure.
> My goal is to change div and ul sequence to match with bootstrap framework.
> I find something in framework/widget/src/org/ofbiz/widget/html but
> nothing that I try to modified work...
>
> What I can't understand is why this submenu is not defined in the .ftl as
> the application menu... I think I missed something important.
>
> My other track is to disable the automatic submenu definition for my theme
> and use .ftl to define my own submenu structure.
>
> Thanks for your help,
>
>
> Julien NICOLAS
> Nomaka
>
Rong Nguyen

Olbius JSC
Deliver highest business value
http://www.olbius.com/
Reply | Threaded
Open this post in threaded view
|

Re: Application submenu creation

JulienNicolas
Thanks for your help Rong,

I finally found :)

The .ftl file is :
widget/templates/htmlMenuMacroLibrary.ftl

But I think if I want to not disturb the other themes, it's better to
change the property file that use this .ftl file.
We can found this parameter here :
widget/config/widget.properties
screen.menurenderer=component://widget/templates/htmlMenuMacroLibrary.ftl

I'll create a new file htmlMenuMacroLibraryForBootstrap.ftl and change
the configuration to use it.

Thanks again,

Have a nice day,

Julien NICOLAS
Nomaka

Le 04/04/2014 04:04, Rong NGUYEN KHAC a écrit :

> Hi Julien,
> Try "HtmlMenuRenderer.java" in "framework/widget/src/org/ofbiz/widget/html",
> put some changes in  "renderLink" method, rebuild and view your desired
> changes.
> Your path is a good point to start!
>
> *Rong Nguyen, Olbius JSC*
> *195 Kham Thien - Viet Nam*
>
> On Fri, Apr 4, 2014 at 4:39 AM, Julien NICOLAS <[hidden email]>wrote:
>
>> Hi all,
>>
>> I try to create new theme and I would like to know where is defined the
>> dropdown submenu html structure.
>> My goal is to change div and ul sequence to match with bootstrap framework.
>> I find something in framework/widget/src/org/ofbiz/widget/html but
>> nothing that I try to modified work...
>>
>> What I can't understand is why this submenu is not defined in the .ftl as
>> the application menu... I think I missed something important.
>>
>> My other track is to disable the automatic submenu definition for my theme
>> and use .ftl to define my own submenu structure.
>>
>> Thanks for your help,
>>
>>
>> Julien NICOLAS
>> Nomaka
>>