[Yanel-usage] changing yanel toolbar

Michael Wechner michael.wechner at wyona.com
Wed Jun 29 09:58:48 CEST 2011


Hi Bettina

See src/realms/from-scratch-realm-template/realm.xml and in particular 
the element

<menu class="..."/>

whereas please note that you can either overwrite the whole toolbar or 
just the menu class by seeting this element.

Also see

src/realms/from-scratch-realm-template/src/java/org/wyona/yanel/servlet/toolbar/impl/FromScratchRealmToolbar.java

whereas you will need a build file inside your realm in order to build 
realm specific toolbar/menu, hence copy

src/realms/from-scratch-realm-template/build.xml

into your realm and then you can build all classes  inside

MY_REALM/src/java

by running

./build.sh -f MY_REALM/build.xml

HTH

Michael

Am 29.06.11 09:41, schrieb Bettina Messmer:
> Hi,
>
> I think, I'm a step further now.
>
> I created a new class extending DefaultMenuV2 which overwrites the 
> getEdit function.
>
> Now my Problem is that I'm not sure how to make sure this class is 
> used by Yanel and not the DefaultMenuV2.
>
> Does anybody now, how I can define that.
>
> thanks,
>
> Bettina
>
> Am 29.06.2011 09:09, schrieb Bettina Messmer:
>> Hi,
>>
>> I'm tring to change yaneltoolbar, which means I want to add a new 
>> function.
>>
>> Actually a function to upload too pictures. (Now I want that you can 
>> choose:
>> edit upload pictures.
>> )
>>
>> Is it necessary to change the menu.java class and add the new file 
>> directly in my repository? or is there as well an xml file, i just 
>> didn't find?
>>
>> thanks,
>>
>> Bettina
>



More information about the Yanel-usage mailing list