Tuesday, September 29, 2009

Javascript libraries with images/css inside Cake Plugins

I'm trying to develop a small backend cms-plugin, which contains some
Javascript libraries like jQuery, jQuery-ui and TinyMCE. Doing this I
stumbled upon a problem I cannot seem to solve in a good way.
jQuery-ui and TinyMCE come bundled with themes, consisting of images
and css files. CakePHP doesn't seem to serve any other file than *.js
from the vendors/js folder inside my plugin though (as opposed to
everything in the /webroot/ folder), forcing me to create additional
folders for images and css in both the /img/ and /css/ folders. For
jquery-ui this is inconvenient, for TinyMCE it's a giant pain, and for
libraries like SwfUploader (or Uploadify in my case), this is simply
impossible because the swf-files don't get served from any of the
three (img, css, js) folders inside myplugin/webroot/.

So how do I bundle these libraries with my plugin without breaking
them? Is it even possible?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: