E-commerce

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

E-commerce

Shrilesh Korgaonkar
Plugins – e-commerce

How does plugins\ecommerce\widget\Theme.xml

Where it is defined as the theme file

Or it automatically loader with others files which are there in the widget
folder
grv
Reply | Threaded
Open this post in threaded view
|

Re: E-commerce

grv
Not sure if I am following you but I will give it a try.

Did you mean how Theme.xml file is loaded?

Look at OFBIZ_HOME/framework/base/config/component-load.xml and see below
line

<load-components parent-directory=*"themes"*/>


It scans all folders under themes folder assuming they are themes.

And then look at org.apache.ofbiz.widget.model.ThemeFactory.java

Code looks for Theme.xml file to load your theme's definitions.

Thanks and Best Regards,
Girish Vasmatkar

On Sat, Aug 25, 2018 at 3:02 PM Shrilesh Korgaonkar <
[hidden email]> wrote:

> Plugins – e-commerce
>
> How does plugins\ecommerce\widget\Theme.xml
>
> Where it is defined as the theme file
>
> Or it automatically loader with others files which are there in the widget
> folder
>
Reply | Threaded
Open this post in threaded view
|

Re: E-commerce

Nicolas Malin-2
hi,

If you component is loaded and you have the widget/Theme.xml file, OFBiz
load it to use it as potential Theme.

But follow
https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk/themes/README.md 
to enable it.

Nicolas

On 25/08/2018 16:57, Girish Vasmatkar wrote:

> Not sure if I am following you but I will give it a try.
>
> Did you mean how Theme.xml file is loaded?
>
> Look at OFBIZ_HOME/framework/base/config/component-load.xml and see below
> line
>
> <load-components parent-directory=*"themes"*/>
>
>
> It scans all folders under themes folder assuming they are themes.
>
> And then look at org.apache.ofbiz.widget.model.ThemeFactory.java
>
> Code looks for Theme.xml file to load your theme's definitions.
>
> Thanks and Best Regards,
> Girish Vasmatkar
>
> On Sat, Aug 25, 2018 at 3:02 PM Shrilesh Korgaonkar <
> [hidden email]> wrote:
>
>> Plugins – e-commerce
>>
>> How does plugins\ecommerce\widget\Theme.xml
>>
>> Where it is defined as the theme file
>>
>> Or it automatically loader with others files which are there in the widget
>> folder
>>