I think you have made this more complex than it need to be.

In '_serverSpecificRequestScope.cfm' (project config) you can just override
the JS and CSS

here is mine


<cfif ListFirst(cgi.PATH_INFO, '/') NEQ "webtop">
<!--- only for web site --->
<skin:registerJS id="jquery"
baseHREF="/skin/jquery-ui-1.8.15"
lFiles="jquery-1.6.2.js"><!--- jquery-1.5.1.js --->

<cfoutput>
var $j = jQuery.noConflict();
var $  = jQuery.noConflict();
</cfoutput>
</skin:registerJS>
<cfelse>
<!--- /core/packages/lib/registerLibraries.cfc --->
<skin:registerJS id="jquery"
baseHREF="#application.url.webtop#/thirdparty/jquery/js"
lFiles="jquery-1.4.3.min.js">
 <cfoutput>
var $j = jQuery.noConflict();
var $ = jQuery.noConflict();
</cfoutput>
</skin:registerJS>
</cfif>

<skin:registerJS id="jquery-ui"
baseHREF="/skin/jquery-ui-1.8.15/ui"
lFiles="jquery-ui-1.8.15.custom.js" />

<skin:registerCSS id="jquery-ui"
baseHREF="/skin/jquery-ui-1.8.15/themes/patersons"
lFiles="jquery-ui-1.8.15.custom.css">
<cfoutput>
.ui-widget {font-size:1em;}
</cfoutput>
</skin:registerCSS>

<!--- // JS LIBRARIES --->

<skin:registerCSS id="pslSkin"
                  baseHREF="/skin/css"
  lFiles="stylesheet.css,styleSheet_structure.css,styleSheet_navigation.css"
 />

<skin:registerCSS id="jQueryCSS"
                  baseHREF="/skin"
 
lFiles="/js/jQuery/jquery-autocomplete/jquery.autocomplete.css,/js/jQuery/flexigrid/css/flexigrid/flexigrid.css,/js/jQuery/prettyPhoto/prettyPhoto.css,/js/jQuery/DataTables-1.7.4/css/demo_table_jui.css"
 />

<skin:registerJS id="jQueryJS"
                  baseHREF="/skin"
 
lFiles="/js/jQuery/jquery-autocomplete/jquery.autocomplete.js,/js/jQuery/qTip/jquery.qtip-1.0.0-rc3.js,/js/jQuery/jquery.jqprint.js,/js/jQuery/
jquery.ga/jquery.ga.js,/js/jQuery/flexigrid/flexigrid.js,/js/jQuery/prettyPhoto/jquery.prettyPhoto.js,/js/jQuery/jcarousellite/jcarousellite_1.0.1.js,/js/jQuery/DataTables-1.7.4/js/jquery.dataTables.js,/js/jQuery/DataTables-1.7.4/js/dataTables.numericComma.js,/js/jQuery/DataTables-1.7.4/js/dataTables.numericCurrency.js,/js/jQuery/DataTables-1.7.4/js/dataTables.date.js"
/>

<!--- for type header --->
<skin:registerJS id="jquery-ga"
baseHREF="/skin/js/jQuery/jquery.ga"
lFiles="jquery.ga.js" />

<skin:registerJS id="jquery-qtip"
baseHREF="/skin/js/jQuery/qTip"
lFiles="jquery.qtip-1.0.0-rc3.js" />


You can even combine all of these to make one cahed file
eg <skin:registerJS id="not-yslow-anymore"
lCombineIDs="patersons,jquery-libraries,sliding_menu" />


On 17 August 2011 21:25, Chris Kent <[email protected]> wrote:

> Love the new Aristo jQuery UI theme for the webtop in 6.1.
>
> But I need a different UI theme for website use of formtools.
>
> I have registered a new jquery ui css with ID="jquery-ui-web" for my chosen
> ui theme and run the following just before onRequestEnd
> <cfset
> arrayDeleteAt(request.inHead.aCSSLibraries,arrayFind(request.inHead.aCSSLibraries,"jquery-ui"))>
> <cfset structDelete(request.inHead.stCSSLibraries,"jquery-ui")>
> <cfimport taglib="/farcry/core/tags/webskin" prefix="skin">
> <skin:loadCSS id="jquery-ui-web" />
>
> It works and I can now have a different jQuery UI theme for website
> formtools and use Aristo in the webtop.
>
> Chris.
>
> --
> You received this message cos you are subscribed to "farcry-dev" Google
> group.
> To post, email: [email protected]
> To unsubscribe, email: [email protected]
> For more options: http://groups.google.com/group/farcry-dev
> --------------------------------
> Follow us on Twitter: http://twitter.com/farcry




-- 

*AJ Mercer*
<webonix:net strength="Industrial" /> <http://webonix.net> | <webonix:org
community="Open" /> <http://webonix.org>
http://twitter.com/webonix
Railo Community Manager <http://www.getrailo.org/index.cfm/community/team/>

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry

Reply via email to