Re: Javascript libraries with images/css inside Cake Plugins

2010-01-31 Thread Miles J
Well in that case, personally I would place everything in the vendors
folder, and not in a js/css folder.

On Jan 31, 4:16 am, Elte Hupkes  wrote:
> Yeah, the people I work for like wysiwyg though, so I'm kind'a stuck
> to TinyMCE. Changing the TinyMCE structure isn't really an option,
> that would be an awful lot of work. And it still doesn't solve the
> flash file problems.
>
> On Jan 30, 9:19 pm, Miles J  wrote:
>
> > Oh I also suggest Markitup compared to TinyMCE, because its a lot
> > smaller and easier, and just as awesome. I ran into the same problem
> > you did.
>
> > On Jan 30, 12:17 pm, Miles J  wrote:
>
> > > I have an easy answer for you... get ready for it.
>
> > > Your css/images/js DO NOT HAVE TO BE structured the same way they are
> > > when downloaded, move them around.
>
> > > I added Markitup to me plugin, so I customized the Markitup
> > > architecture to work with my plugin, not the other around.
>
> > > Take a gander:http://github.com/milesj/forum/tree/master/vendors/
>
> > > On Jan 30, 2:55 am, Elte Hupkes  wrote:
>
> > > > That URL no longer works, I believe it's located here 
> > > > now:http://cakephp.lighthouseapp.com/projects/42648/13-new-features-plugi...
>
> > > > Awesome news nontheless! Can't wait for a stable 1.3 release!
>
> > > > On Dec 3 2009, 4:12 pm, "Larry E. Masters aka PhpNut"
>
> > > >  wrote:
> > > > >http://code.cakephp.org/wiki/1.3/new-features/plugin-assets
>
> > > > > --
> > > > > /**
> > > > > * @author Larry E. Masters
> > > > > * @var string $userName
> > > > > * @param string $realName
> > > > > * @returns string aka PhpNut
> > > > > * @access  public
> > > > > */
>
> > > > > On Thu, Dec 3, 2009 at 4:53 AM, peterchenadded 
> > > > > wrote:
>
> > > > > > Have a look at mediaview (http://book.cakephp.org/view/489/Media-
> > > > > > Views).
>
> > > > > > Basically, it will give you access to any file on your system
> > > > > > including your plugins folder. If you name your controller and 
> > > > > > action
> > > > > > properly you should be able to achieve what you want.
>
> > > > > > Cheers.
>
> > > > > > Check out the new CakePHP Questions 
> > > > > > sitehttp://cakeqs.organdhelpothers
> > > > > > with their CakePHP related questions.
>
> > > > > > 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+unsubscr...@googlegroups.comFor
> > > > > >  more options, visit this group at
> > > > > >http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Javascript libraries with images/css inside Cake Plugins

2010-01-31 Thread Elte Hupkes
Yeah, the people I work for like wysiwyg though, so I'm kind'a stuck
to TinyMCE. Changing the TinyMCE structure isn't really an option,
that would be an awful lot of work. And it still doesn't solve the
flash file problems.

On Jan 30, 9:19 pm, Miles J  wrote:
> Oh I also suggest Markitup compared to TinyMCE, because its a lot
> smaller and easier, and just as awesome. I ran into the same problem
> you did.
>
> On Jan 30, 12:17 pm, Miles J  wrote:
>
> > I have an easy answer for you... get ready for it.
>
> > Your css/images/js DO NOT HAVE TO BE structured the same way they are
> > when downloaded, move them around.
>
> > I added Markitup to me plugin, so I customized the Markitup
> > architecture to work with my plugin, not the other around.
>
> > Take a gander:http://github.com/milesj/forum/tree/master/vendors/
>
> > On Jan 30, 2:55 am, Elte Hupkes  wrote:
>
> > > That URL no longer works, I believe it's located here 
> > > now:http://cakephp.lighthouseapp.com/projects/42648/13-new-features-plugi...
>
> > > Awesome news nontheless! Can't wait for a stable 1.3 release!
>
> > > On Dec 3 2009, 4:12 pm, "Larry E. Masters aka PhpNut"
>
> > >  wrote:
> > > >http://code.cakephp.org/wiki/1.3/new-features/plugin-assets
>
> > > > --
> > > > /**
> > > > * @author Larry E. Masters
> > > > * @var string $userName
> > > > * @param string $realName
> > > > * @returns string aka PhpNut
> > > > * @access  public
> > > > */
>
> > > > On Thu, Dec 3, 2009 at 4:53 AM, peterchenadded 
> > > > wrote:
>
> > > > > Have a look at mediaview (http://book.cakephp.org/view/489/Media-
> > > > > Views).
>
> > > > > Basically, it will give you access to any file on your system
> > > > > including your plugins folder. If you name your controller and action
> > > > > properly you should be able to achieve what you want.
>
> > > > > Cheers.
>
> > > > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelpothers
> > > > > with their CakePHP related questions.
>
> > > > > 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+unsubscr...@googlegroups.comFor
> > > > >  more options, visit this group at
> > > > >http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Javascript libraries with images/css inside Cake Plugins

2010-01-30 Thread Miles J
Oh I also suggest Markitup compared to TinyMCE, because its a lot
smaller and easier, and just as awesome. I ran into the same problem
you did.

On Jan 30, 12:17 pm, Miles J  wrote:
> I have an easy answer for you... get ready for it.
>
> Your css/images/js DO NOT HAVE TO BE structured the same way they are
> when downloaded, move them around.
>
> I added Markitup to me plugin, so I customized the Markitup
> architecture to work with my plugin, not the other around.
>
> Take a gander:http://github.com/milesj/forum/tree/master/vendors/
>
> On Jan 30, 2:55 am, Elte Hupkes  wrote:
>
> > That URL no longer works, I believe it's located here 
> > now:http://cakephp.lighthouseapp.com/projects/42648/13-new-features-plugi...
>
> > Awesome news nontheless! Can't wait for a stable 1.3 release!
>
> > On Dec 3 2009, 4:12 pm, "Larry E. Masters aka PhpNut"
>
> >  wrote:
> > >http://code.cakephp.org/wiki/1.3/new-features/plugin-assets
>
> > > --
> > > /**
> > > * @author Larry E. Masters
> > > * @var string $userName
> > > * @param string $realName
> > > * @returns string aka PhpNut
> > > * @access  public
> > > */
>
> > > On Thu, Dec 3, 2009 at 4:53 AM, peterchenadded 
> > > wrote:
>
> > > > Have a look at mediaview (http://book.cakephp.org/view/489/Media-
> > > > Views).
>
> > > > Basically, it will give you access to any file on your system
> > > > including your plugins folder. If you name your controller and action
> > > > properly you should be able to achieve what you want.
>
> > > > Cheers.
>
> > > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelpothers
> > > > with their CakePHP related questions.
>
> > > > 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+unsubscr...@googlegroups.comFor
> > > >  more options, visit this group at
> > > >http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Javascript libraries with images/css inside Cake Plugins

2010-01-30 Thread Miles J
I have an easy answer for you... get ready for it.

Your css/images/js DO NOT HAVE TO BE structured the same way they are
when downloaded, move them around.

I added Markitup to me plugin, so I customized the Markitup
architecture to work with my plugin, not the other around.

Take a gander: http://github.com/milesj/forum/tree/master/vendors/

On Jan 30, 2:55 am, Elte Hupkes  wrote:
> That URL no longer works, I believe it's located here 
> now:http://cakephp.lighthouseapp.com/projects/42648/13-new-features-plugi...
>
> Awesome news nontheless! Can't wait for a stable 1.3 release!
>
> On Dec 3 2009, 4:12 pm, "Larry E. Masters aka PhpNut"
>
>  wrote:
> >http://code.cakephp.org/wiki/1.3/new-features/plugin-assets
>
> > --
> > /**
> > * @author Larry E. Masters
> > * @var string $userName
> > * @param string $realName
> > * @returns string aka PhpNut
> > * @access  public
> > */
>
> > On Thu, Dec 3, 2009 at 4:53 AM, peterchenadded 
> > wrote:
>
> > > Have a look at mediaview (http://book.cakephp.org/view/489/Media-
> > > Views).
>
> > > Basically, it will give you access to any file on your system
> > > including your plugins folder. If you name your controller and action
> > > properly you should be able to achieve what you want.
>
> > > Cheers.
>
> > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others
> > > with their CakePHP related questions.
>
> > > 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+unsubscr...@googlegroups.comFor
> > >  more options, visit this group at
> > >http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Javascript libraries with images/css inside Cake Plugins

2010-01-30 Thread Elte Hupkes
That URL no longer works, I believe it's located here now:
http://cakephp.lighthouseapp.com/projects/42648/13-new-features-plugin-assets

Awesome news nontheless! Can't wait for a stable 1.3 release!

On Dec 3 2009, 4:12 pm, "Larry E. Masters aka PhpNut"
 wrote:
> http://code.cakephp.org/wiki/1.3/new-features/plugin-assets
>
> --
> /**
> * @author Larry E. Masters
> * @var string $userName
> * @param string $realName
> * @returns string aka PhpNut
> * @access  public
> */
>
> On Thu, Dec 3, 2009 at 4:53 AM, peterchenadded 
> wrote:
>
> > Have a look at mediaview (http://book.cakephp.org/view/489/Media-
> > Views).
>
> > Basically, it will give you access to any file on your system
> > including your plugins folder. If you name your controller and action
> > properly you should be able to achieve what you want.
>
> > Cheers.
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > 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+unsubscr...@googlegroups.comFor
> >  more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Javascript libraries with images/css inside Cake Plugins

2009-12-03 Thread Larry E. Masters aka PhpNut
http://code.cakephp.org/wiki/1.3/new-features/plugin-assets

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/

On Thu, Dec 3, 2009 at 4:53 AM, peterchenadded wrote:

> Have a look at mediaview (http://book.cakephp.org/view/489/Media-
> Views).
>
> Basically, it will give you access to any file on your system
> including your plugins folder. If you name your controller and action
> properly you should be able to achieve what you want.
>
> Cheers.
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Javascript libraries with images/css inside Cake Plugins

2009-12-03 Thread peterchenadded
Have a look at mediaview (http://book.cakephp.org/view/489/Media-
Views).

Basically, it will give you access to any file on your system
including your plugins folder. If you name your controller and action
properly you should be able to achieve what you want.

Cheers.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Javascript libraries with images/css inside Cake Plugins

2009-12-03 Thread saintpumpkin
It's a shame, i have the same problem :(

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Javascript libraries with images/css inside Cake Plugins

2009-11-21 Thread Elte Hupkes
Nope, no solution yet.. For now I'm just putting all my image/flash
dependent libraries in /webroot/js where they can be reached, a bit of
a chore in truth.. Let's just hope some cake-dev out there hears our
cries ;-).

On Nov 17, 6:10 pm, haimke  wrote:
> Hi, did you find any solution to this problem ?
> It seems like a bug in CakePHP

--

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




Re: Javascript libraries with images/css inside Cake Plugins

2009-11-17 Thread haimke
Hi, did you find any solution to this problem ?
It seems like a bug in CakePHP

--

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




Re: Javascript libraries with images/css inside Cake Plugins

2009-10-03 Thread womble

Its a pain, because ideally just dumping it all under plugin_name/js/
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  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  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  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  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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Javascript libraries with images/css inside Cake Plugins

2009-10-03 Thread Elte Hupkes

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  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  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  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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Javascript libraries with images/css inside Cake Plugins

2009-10-02 Thread womble

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  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  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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Javascript libraries with images/css inside Cake Plugins

2009-09-30 Thread brian

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  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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Javascript libraries with images/css inside Cake Plugins

2009-09-30 Thread Elte Hupkes

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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---