Zum Inhalt springen

Pfad zur Extension im inDocStylesArray

Erstellt am 19. August 2013 · 1 Antwort · letzte Antwort am 19. August 2013

Tags: HTML & CSS, TYPO3 4.x, Frage

ironpfu ·

Hallo liebes Forum,

kann mir jemand sagen wie bzw. ob ich den Pfad zu meiner eigenen Extension auch innerhalb des inDocStylesArray nutzen kann?

Ich möchte in einem BE Modul meiner Extension mittels CSS einer Tabelle ein Hintergrundbild verpassen:

$this->doc->inDocStylesArray['tx_congress_mod1'] = '
				#badget_par {background-image:url("../typo3conf/ext/tx_extension/mod1/gfx/participant.jpg"); padding: 2px; border:1px solid #ddd; background-size:300px 200px; width:300px; height:200px;}
				#badget_acc {background-image:url("../typo3conf/ext/tx_extension/mod1/gfx/accompanying.jpg"); padding: 2px; border:1px solid #ddd;background-size:300px 200px; width:300px; height:200px;}
			';

Wenn ich wie in diesem BSP. absolute Pfade verwende klapp dies auch... nur wenn dies mit: "EXT:tx_congress" ersezte klappt dies nicht :-(
Hat jemand schon ein ähnliches Provlem?

Wäre über jede Hilfe dankbar,

LG Jürgen

ironpfu · · Beste Antwort

Habe eine für mich passende Lösung gefunden:

#badget_par {background-image:url("../'.t3lib_extMgm::siteRelPath('tx_extension').'/mod1/gfx/participant.jpg"); margin-bottom: 20px; border:1px solid #ddd; background-size:300px 200px; width:300px; height:200px;}

Falls jemand eine bessere Lösung hat bitte posten...
LG Jürgen