Re: Plugin and css links

2010-04-27 Thread Mike
Hey. I had the same problem a couple of days ago. The cakephp book has section explaining this... http://book.cakephp.org/view/742/Plugin-Images-CSS-and-Javascript Basically rename your PluginName/webroot directory to PluginName/ vendors. The in your css you can do background:

Plugin and css links

2010-04-26 Thread Ziki
Hi, I have images in img folder in webroot of my plugin, but images aren't load when links from css file also in plugin. This is problem when making theme. I must put img in default img folder of site, not under plugin webroot folder. Is there solution? Check out the new CakePHP Questions site

Re: Plugin and css links

2010-04-26 Thread jacmoe
Treat the plugin/webroot the same as app/webroot: Images in img, css in css, javascript in js, etc. Did you put them in the 'img' directory ? On Apr 27, 12:21 am, Ziki zixw...@gmail.com wrote: Hi, I have images in img folder in webroot of my plugin, but images aren't load when links from css

Re: Plugin and css links

2010-04-26 Thread Ziki
yes, but when I have in my css file something like this: background: url(/img/bg.gif); that can not be loaded from plugin img directory, problem is just links in css files. On 27 tra, 03:23, jacmoe jac...@mail.dk wrote: Treat the plugin/webroot the same as app/webroot: Images in img, css in

Re: Plugin and css links

2010-04-26 Thread Sam Sherlock
replace {PluginName} with your plugin name :) background: url({PluginName}/img/bg.gif); or background: url(../img/bg.gif); plugin webroots serve files from example.com/{PluginName}/(css|js|img)/ you can speed up the serving of these files by copying them from the plugin webroot dir into a