[TYPO3-german] EXT comments
bernd wilke
t3ng at pi-phi.tk
Mon Jun 7 18:00:55 CEST 2010
Am Mon, 07 Jun 2010 15:23:34 +0100 schrieb Sandra Tyrchan | easymoments
GmbH:
> Hallo Liste,
>
>
>
> ich suche gerade herum, wo ich das CSS zur EXT finde
. Ich möchte es im
> Quellcode verschieben, damit ichs mittels anderer CSS überschreiben
> kann. Kann mir jemand helfen, wo sich der Code, der die CSS aufruft
> versteckt hat?
ist schon etwas tricky. Aber hier ist es:
Datei: pi1/class.tx_comments_pi1.php
Function: init()
$this->templateCode = $this->cObj->fileResource($this->conf
['templateFile']);
$key = 'EXT:comments_' . md5($this->templateCode);
if (!isset($GLOBALS['TSFE']->additionalHeaderData[$key])) {
$headerParts = $this->cObj->getSubpart($this->templateCode,
'###HEADER_ADDITIONS###');
if ($headerParts) {
$headerParts = $this->cObj->substituteMarker($headerParts,
'###SITE_REL_PATH###', t3lib_extMgm::siteRelPath('comments'));
$GLOBALS['TSFE']->additionalHeaderData[$key] =
$headerParts;
}
}
Es wird direkt aus dem HTML-Template herauskopiert.
im default-HTML-Template res/pi1_template.html findet sich folgender
Subpart:
<head>
<!-- ###HEADER_ADDITIONS### begin
This section will be appended to html headers of the
output. Allows you to include CSS, JS, etc
Markers in this section:
SITE_REL_PATH - path to file relative to web
root, ending with slash
-->
<link rel="stylesheet" href="###SITE_REL_PATH###res/pi1.css" />
<script type="text/javascript" src="###SITE_REL_PATH###res/pi1.js"></
script>
<!-- ###HEADER_ADDITIONS### end -->
</head>
wenn du also ein anderes CSS benutzen willst kannst du es direkt in
deinem eigenen HTML-Template einbauen (zb. einer Kopie des
Extensiontemplates, damit ein extension-update nichts zerstört)
bernd
--
http://www.pi-phi.de/cheatsheet.html
More information about the TYPO3-german
mailing list