layoutSettings.javaScripts

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

layoutSettings.javaScripts

Tim Ruppert
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

o:801.649.6594
f:801.649.6595



smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: layoutSettings.javaScripts

Tim Ruppert
This appears to work on other ones that I've done off of the main decorator, so something else must be wrong.  

Cheers,
Tim
--
Tim Ruppert
HotWax Media

o:801.649.6594
f:801.649.6595


On Mar 28, 2007, at 10:50 PM, 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

o:801.649.6594
f:801.649.6595




smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: layoutSettings.javaScripts

cjhowe
Keep in mind that you have to ultimately make use of a decorator that
makes use of the layoutSettings.javascripts variable (ie
framework/common/webcommon/includes/header.ftl)

What is also interesting in this and I'm thinking it may not be
implemented correctly is the attribute global="true" when your variable
has a parent node.  In this case javascripts is the variable and
layoutSettings is the parent node.


--- Tim Ruppert <[hidden email]> wrote:

> This appears to work on other ones that I've done off of the main  
> decorator, so something else must be wrong.
>
> Cheers,
> Tim
> --
> Tim Ruppert
> HotWax Media
> http://www.hotwaxmedia.com
>
> o:801.649.6594
> f:801.649.6595
>
>
> On Mar 28, 2007, at 10:50 PM, 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
> >
> >
>
>

Reply | Threaded
Open this post in threaded view
|

Re: layoutSettings.javaScripts

Adrian Crum
In reply to this post by Tim Ruppert
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
>
>