Karelia Community Forum

Join a conversation, pose a question, or help a fellow user: The best place to discuss all things Karelia.

You are not logged in.

#1 January 9, 2012 5:56 pm

danwood
Administrator

Changes in 2.5 affecting third-party designs

This is applicable for anybody doing designs for Sandvox.

Starting with the forthcoming 2.5 version of Sandvox (now in Beta), there are a couple of changes.

First of all, you can specify in your design's Info.plist file an array of JavaScript files that should be loaded with your design.  This is a lot more flexible than the old method (still supported) of a single "javascript.js" file that will be included if it is found in your design package.  With the increasing popularity of JavaScript, we feel that this will be a way to make it easier to incorporate scripts into designs.

Second: For those using IE conditional comments to handle Internet Explorer idiosyncrasies, these files will be loaded *after* the main.css.  This is more natural, where the IE-specific CSS can override the default setup in main.css.

Offline

#2 January 11, 2012 7:34 am

seanc
Hero

Re: Changes in 2.5 affecting third-party designs

Dan:

danwood wrote:

.. First of all, you can specify in your design's Info.plist file an array of JavaScript files that should be loaded with your design.  This is a lot more flexible than the old method (still supported) of a single "javascript.js" file that will be included if it is found in your design package ...

This would be very beneficial for plugin CSS files as well.

... Second: For those using IE conditional comments to handle Internet Explorer idiosyncrasies, these files will be loaded *after* the main.css.  This is more natural, where the IE-specific CSS can override the default setup in main.css.

A plugins CSS files should load after main.css as well, and it would be VERY nice if a plugins programmatically generated CSS styles (via "-addCSSString") would target the plugins CSS resource file, rather than being intermingled into "main.css".

Sean

Offline

Board footer

Powered by FluxBB