the_lib would be ideal. I haven't given up on it, just taken a break
from it for a while, I'll get motivated again sometime.
The only suggestion I was given was to load the library under webroot
- but this takes away the ability to package it all as the plugin.
On Oct 3, 7:27 pm, Elte Hupkes <ell...@gmail.com> wrote:
> Exactly. I know the paths are righ, because the css files and js libs
> do get loaded, and if I place them under the app's /webroot/ folder,
> so do the images/other files they include. Just not when they're
> inside a plugin's vendors folder (the same problem occurs with
> javascript in the normal vendors folder by the way, but that has a
> clear cause if you look at the vendors.php file in the webroot/js
> folder).
>
> So it pretty much comes down to this: when for instance I place a file
> named "upload.swf" inside the /plugins/myplugin/vendors/js/ I would
> like to be able to browse to it via url/myplugin/js/upload.swf, this
> doesn't work though. And indeed it's not preferable to change the file
> locations inside a 3rd party lib, but for swf-files the _only_
> solution is moving it to the webroot folder, because it simply gets
> ignored from anywhere inside the plugin's vendors folder.
>
> Too bad you never found a good solution..
>
> On Oct 2, 2:28 pm, womble <l.e.ad...@gmail.com> wrote:
>
> > I'm pretty sure its not the 'prefacing' etc. But I may be wrong.
>
> > 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