Image Replace with CSS declared images

50 views
Skip to first unread message

Michael Keplinger

unread,
May 24, 2012, 11:30:11 AM5/24/12
to raintpl
Hi Guys,

we are using the new RainTpl 3.0 beta with Rath Replace enabled.

I was wondering, are CSS declared images supposed to get rewritten or
is that supported?

//examples in CSS
#header {
background: url('img/header.jpg');
width: 1247px;
background-repeat: no-repeat;
height: 447px;
}

This doesn't get rewritten by RainTpl, and I have to instead use the
relative paths to back out the template directory
background: url('../img/header.jpg');


Is this possible to have Rain rewrite these paths also?

Best,
Michael

Federico Ulfo

unread,
May 24, 2012, 12:00:59 PM5/24/12
to rai...@googlegroups.com
Hi Michael,
Rain doesn't touch the content of the CSS files, also because you can use already relative paths.
If you have this need you can modify the plugin to do that, although it could be a very complex hack.

Reply all
Reply to author
Forward
0 new messages