I basically had the same problem with ext-js. I didn't ever find a
good solution. But there has to be somewhere to change the Cake
settings. My problem was that the library css was referencing
relative urls of images, but the images were not accessible unless
they were located under the plugin_name/img folder. And if I put the
whole library under the plugin_name/js folder the css and images were
not accessible.
If it were all my own code it wouldn't be an issue, but as they're 3rd
party libraries its preferable not to change paths in the css etc.
On Oct 1, 2:03 am, brian <bally.z...@gmail.com> wrote:
> How are you linking the css files? You should only need to preface the
> file name with 'plugin_name/css/', eg.
> $html->css('/plugin_name/css/css_filename');
>
> On Tue, Sep 29, 2009 at 6:32 PM, Elte Hupkes <ell...@gmail.com> wrote:
>
> > 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:
Post a Comment