Hi Aditya,

I already create my own theme by extending an existing one. It works but I feel 
quite uncomfortable by creating a new theme for the purpose of adding a single 
.js file to an existing theme. I was hoping there would be a better solution 
and handle those things via the plugin.

Thanks,
Ingo

-----Ursprüngliche Nachricht-----
Von: Aditya Sharma <adityasha...@apache.org> 
Gesendet: Dienstag, 16. Februar 2021 16:04
An: user@ofbiz.apache.org
Betreff: Re: Add CSS/JS to backend theme from plugin

Hi Ingo,

You may refer to documentation in themes.adoc[1]. Though I am not sure if this 
is the right solution, maybe you can create your own theme extending the 
existing one[2]

HTH

1.
https://github.com/apache/ofbiz-framework/blob/trunk/themes/docs/themes.adoc
2.
https://github.com/apache/ofbiz-framework/blob/trunk/themes/docs/themes.adoc#extends-common-theme

Thanks and regards,
Aditya Sharma

On Tue, Feb 16, 2021 at 5:58 PM Ingo Wolfmayr <ingo.wolfm...@wolfix.at>
wrote:

> Hi everybody,
>
> is it possible to add a javascript/css from an addon to an existing 
> backend theme.
>
> Case: I have created a plugin that provides various reports via portlets.
> Now I want to use the portlet logic to show those reports on different 
> places like accounting, catalog a.s.o. Therefore I want the necessary 
> JS/CSS files loaded for the whole theme - not for the plugin only.
>
> Long time ago I would have added those scripts via VisualThemeResource 
> :) If possible I do not want to touch the original theme and I want to 
> avoid creating a new plugin just for the purpose of providing those filed.
>
> Every idea would be highly appreciated.
>
> Best regards,
> Ingo
>

Reply via email to