From: Clemens Klein-R. <cro...@we...> - 2005-09-07 20:42:28
|
Hello Sam, > How can I make an URL absolute in the frontend.css, for example having > the following line: > > background-image: url(folderimages/head_en.jpg); > > I am not used to DTML - maybe some one of you just knows the answer > before I plunge into the DTML documentation. > well, maybe peek into the Silva code ;). "globals/frontend.css.dtml" has some code, which looks like: /** * <dtml-let root="get_root_url()" ...omit other stuff... > */ [...] background-image: url(<dtml-var root>/globals/skyfade.gif); [...] I did not really test it, but I hope this works for You either. Assuming "folderimages" is living in the Silva root this should work, I think. If You want to lookup "folderimages" dynamically, try something like: <dtml-var expr="folderimages.absolute_url()"> might do, but I am not experienced to DTML either, so this might just throw any error at You ... Cheers, Clemens |