You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Shrilesh Korgaonkar <sh...@udyogmandir.in> on 2018/08/25 07:29:19 UTC
E-commerce
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
Re: E-commerce
Posted by Nicolas Malin <ni...@nereide.fr>.
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 <
> shrilesh.korgaonkar@udyogmandir.in> 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
>>
Re: E-commerce
Posted by Girish Vasmatkar <gi...@hotwaxsystems.com>.
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 <
shrilesh.korgaonkar@udyogmandir.in> 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
>