Just wondering if anyone has cufon working with Silverstripe. Just starting to look into this, as I have always used Sifr, but wondered if anyone had this working? Also how hard would it be to make a cufon Module do you think?
I never heard of cufon, but it sounds interesting (for all others that are interested: http://wiki.github.com/sorccu/cufon).
Creating a module for such a basic/simple thing seems like overkill. Or what did you have in mind for a module?
I guess a module could help with the intergration with Silverstripe, handle the requirements/file includes and make it a simpler option to intergrate with Silverstripe than Sifr which I find can be slow to load.
I see there is a wordpress module for Cufon that already exists, and I guess it may be worth looking at this to see what configuration options this offers and see whether a similar module could be made for Silverstripe
I'm replying awfully late however someone may like find this useful...
Stop putting js in the body (http://silverstripe.org/template-questions/show/4815)
Cufon.replace must be last so create the following to suit your needs
Page.ss head (at the end)
<% require themedCSS(layout) %>
Page.ss body(at the end, but before any other scripts)
Hope that helps
Adding the to
will load the Cufon call as last, so you can keep the js inclusion in the body.