{TEMPLATE_PATH} funktioniert nicht

Hier können Probleme und alles andere in Deutscher Sprache gelöst werden.
Post Reply
reinhardl
Regular
Posts: 258
Joined: Wed Jun 20, 2007 8:54 am
Location: Germany

{TEMPLATE_PATH} funktioniert nicht

Post by reinhardl »

hallo,

woran liegt es, dass

background:#054b6e url({TEMPLATE_PATH}img/bg_main.jpg) center top no-repeat;

in dr style.css nicht funktioniert.

nehme ich eine andere index.tpl so wird {TEMPLATE_PATH} richtig geparst.

Danke
deacon
Regular
Posts: 75
Joined: Wed Sep 26, 2007 11:31 pm
Location: bei Hamburg
Contact:

Post by deacon »

Code: Select all

background {#054b6e url({TEMPLATE_PATH}img/bg_main.jpg) center top no-repeat;}
Steht das so in deiner CSS? mit den geschweiften Klammern am Anfang und am Ende? Und ohne den Doppelpunkt?
Image
reinhardl
Regular
Posts: 258
Joined: Wed Jun 20, 2007 8:54 am
Location: Germany

Post by reinhardl »

War oben ein Tipp-Fehler
So steht es in der css:

background:#054b6e url({TEMPLATE_PATH}img/bg_main.jpg) center top no-repeat;
deacon
Regular
Posts: 75
Joined: Wed Sep 26, 2007 11:31 pm
Location: bei Hamburg
Contact:

Post by deacon »

Versuch es mal ohne den Doppelpunkt hinter background. Denn sollte es gehen. Oder so wie ich es oben gepostet habe. Und vergess die Klammern nicht.
Image
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Nur die style.css eines templates wird geparsed.

Grüße,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
reinhardl
Regular
Posts: 258
Joined: Wed Jun 20, 2007 8:54 am
Location: Germany

{TEMPLATE_PATH} wird einfach nicht erkannt

Post by reinhardl »

Die Syntax hat es nicht gebracht, - das scheint es nicht zu sein.


Das Problem tritt bei einem Template was ich gerade von Joomla nach Serendipity portiere auf:


http://der-test.de/serendipity/


Wenn ich dort in der style.css
background:#054b6e url({TEMPLATE_PATH}img/bg_main.jpg) center top no-repeat;

statt

background: #054b6e url(/serendipity/templates/RedEvoAphelion/img/bg_main.jpg) center top no-repeat;

dann funktioniert das mit den Grafiken nicht mehr.

Grübel...
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: {TEMPLATE_PATH} wird einfach nicht erkannt

Post by yellowled »

reinhardl wrote:background:#054b6e url({TEMPLATE_PATH}img/bg_main.jpg) center top no-repeat;

Code: Select all

background:#054b6e url('{TEMPLATE_PATH}img/bg_main.jpg') center top no-repeat;
oder

Code: Select all

background:#054b6e url("{TEMPLATE_PATH}img/bg_main.jpg") center top no-repeat;
?

YL
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: {TEMPLATE_PATH} wird einfach nicht erkannt

Post by garvinhicking »

Hi!

Du rufst das Stylesheet auch über serendipity.css.php auf, nicht über /pfad/zu/style.css, gell?

Grüße,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply