setup.txt constants.txt

Statische Extension Templates

Man kann externe Typoscript Templates zur Extension hinzufügen fals nötig. Ein externes Typoscript Templates könnte z.B. ein default CSS für die Extension definieren.

Zum Beispiel:

1) setup.txt:

plugin.tx_myext_pi1._CSS_DEFAULT_STYLE (

    body {
        margin-left: 0px;
        margin-top: 0px;
        margin-right: 0px;
        margin-bottom: 0px;
        background-image: url(typo3conf/ext/myext/res/fullwall.jpg);
        background-repeat: repeat-x
    }

setup.txt ist das statische Template und befindet sich im Verzeichnis pi1/static/css der Extension.

2) ext_tables.php:

t3lib_extMgm::addStaticFile($_EXTKEY,"pi1/static/css","myext default css");

in ext_tables.php der Extension ist folgender Aufruf:

t3lib_extMgm::addStaticFile($extKey,$path,$title) with the right parameters.

3) "include static template (from extensions)" selector:

Mit dem "include static template (from extensions)" selector im Template record kann das statische Template zum Typoscript Template hinzugefügt werden.

Erstellt: 07/2010| Geändert: 10/2015

ext_typoscript_setup.txt / constants

Das in die folgenden beiden Dateien eigefügte Typoscript kann mit dem Constants Editor editiert werden und ist auch verfügbar wenn die statischen Templates nicht eingebunden werden.

ext_typoscript_setup.txt 

plugin.tx_flatmgr_pi1 {
  # cat=plugin.tx_rsysjobs_pi1/file/10; type=file; label= Template file: Defines which template file to be used in the extension.
  templateFile = EXT:rsys_jobs/res/template.html
}

ext_typoscript_constants.txt

plugin.tx_flatmgr_pi1 {
  templateFile = {$plugin.tx_rsysjobs_pi1.templateFile}
}

Erstellt: 07/2010| Geändert: 10/2015