eZ Community » Forums » eZ Publish 5 Platform » cssrewrite : wrong path
expandshrink

cssrewrite : wrong path

cssrewrite : wrong path

Wednesday 22 January 2014 11:47:51 am - 1 reply

Hi,

I use this method for call my css because I want respect an order :

 {% stylesheets
'@AbxReseauBundle/Resources/public/assets/plugins/bootstrap/css/bootstrap.min.css'
'@AbxReseauBundle/Resources/public/assets/plugins/uniform/css/uniform.default.css'
'@AbxReseauBundle/Resources/public/assets/plugins/gritter/css/jquery.gritter.css'
....
filter='cssrewrite'
%} 

I've no error with assetic:dump.

But in my CSS, the path isn't good : background-image:url(../../Resources/public/assets/img/sidebar-toggler.jpg);

Resources/public not exist but with assets:install, the right path is bundles/abxreseau/assets/img

It's weird because I must use assetic:dump for css and js and assets:install for image ??

Thx happy.gif Emoticon

Modified on Wednesday 22 January 2014 11:51:07 am by Stéphane Savona

Wednesday 22 January 2014 1:37:52 pm

Hi Stéphane,

this is also an issue we had in the DemoBundle, to avoid it we don't use the cssrewrite filter and we always reference the images with something lile:

<span class="k">background</span><span class="o">:</span> <span class="k">transparent</span> <span class="sx">url('../bundles/ezdemo/images/bgr-header.png')</span>

so that this is working no matter the configuration of eZ Publish and the server configuration.

Cheers

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from