Re: layoutSettings.javaScripts

Posted by Adrian Crum on
URL: http://ofbiz.116.s1.nabble.com/layoutSettings-javaScripts-tp145280p145281.html

Tim,

I just tried using that line in the <action> section of a screen definition and
it works.

-Adrian


Tim Ruppert wrote:

> Adrian did a bunch of cleanup on how we declare our javascript, css,
> favicons, etc in the backend application - in a very optimized way.  
> During the developers conference he and I worked on pushing this to the
> ecommerce app quite successfully.  We did this by adding these
> definitions to decorators.
>
> I am now implementing this on a site where I don't want to define
> another decorator, but just want to add something like:
>
> <set field= "layoutSettings.javaScripts[]" value=
> "/justjewelry/images/script.js" global= "true" />
>
> to a particular screen, but this is not working properly.  I'm sure it
> will work if I define another decorator for this.  Can you not put these
> definitions on a screen by screen basis?  I'll keep looking, but if
> someone's got the answer close by - please let me know if I'm running
> into a restriction.
>
> Cheers,
> Tim
> --
> Tim Ruppert
> HotWax Media
> http://www.hotwaxmedia.com
>
> o:801.649.6594
> f:801.649.6595
>
>