[TYPO3] templavoila: rewrite link path

Matyi Gábor gmatyi at freemail.hu
Thu Jun 12 21:52:38 CEST 2008


Hi!

I bought a template monster template, I'd like to use it as main 
template of my site.
Simple I extract it to the fileadmin/templates/1234 folder, so I have 
f.e. five files.

fileadmin/templates/1234/index.html
fileadmin/templates/1234/styles.css
fileadmin/templates/1234/images/image1.jpg
fileadmin/templates/1234/images/image1.jpg
fileadmin/templates/1234/images/image1.jpg


in the index.html there are the following links

<img src="images/image1.jpg">
<td background-image:url(images/image2.jpg)>

in the styles.css

.myitem { backround-image: url(images/image3.jpg) }

If I open with browser the fileadmin/templates/1234/index.html, the 
template appear perfect.

After I map this template with templatevoila, I experienced, that the 
link are rewritten in the result.

instead of <img src="images/image1.jpg"> I get <img 
src="fileadmin/templates/1234/images/image1.jpg"> it is normal.

but the css links are not rewritten. Of course the images/image3.jpg url 
path has to be the same, but the <td 
background-image:url(images/image2.jpg)> has to be rewrite to <td 
background-image:url(fileadmin/templates/1234/images/image2.jpg)> -this 
is my exprerience.

my question, why the templatevoila doesn't rewrite the url path, if it 
is en embedded css style code in a html file?

Thanks Gabor Matyi


More information about the TYPO3-english mailing list