NAVIGATION
This shows you the differences between two versions of the page.
deutsch:technik:systemvariablen:vorlagen [2010/09/26 08:08] Knut Heermann (flip-flop) |
deutsch:technik:systemvariablen:vorlagen [2018/06/03 18:08] (current) |
||
---|---|---|---|
Line 3: | Line 3: | ||
====== Vorlagen ====== | ====== Vorlagen ====== | ||
+ | Siehe auch: [[deutsch/templates]] | ||
+ | |||
+ | \\ | ||
+ | **Systemvariablen:** | ||
+ | <file> | ||
+ | - $block['name'] // Name: [Vorlagenname] | ||
+ | - $block['layout'] // Layout: [Layout-Nr.] | ||
+ | |||
+ | - $block['overwrite'] // Einstellungen: [Standard|Name der PHP-Datei in /template/inc_settings/template_default/] | ||
+ | |||
+ | - $block["css"] // CSS Datei: Ausgabe im array z.B. Array([0] => frontend.css [1] => nav_horiz_drop_down.css) | ||
+ | - $block["htmlhead"] // Inhalt HTML Kopf: <head> | ||
+ | |||
+ | - $block['jslib'] // JS Bibliothek: [Bibliothekname] | ||
+ | - $block['jslibload'] // immer laden [0|1] | ||
+ | - $block['googleapi'] // Google Ajax Lib benutzen [0|1] | ||
+ | |||
+ | - $block['frontendjs'] // frontend.js laden (mehr aus historischen Gründen) [0|1] | ||
+ | - $block['jsonload'] // JS onload: [JS String] | ||
+ | - $block['feloginurl'] // FE LoginURL: [URL] | ||
+ | |||
+ | - $block['headertext'] // Inhalt Kopfzeile: [Inhalt] | ||
+ | - $block['maintext'] // Inhalt Haupt: [Inhalt] | ||
+ | - $block['footertext'] // Inhalt Fußzeile: [Inhalt] | ||
+ | - $block['lefttext'] // Inhalt links: [Inhalt] | ||
+ | - $block['righttext'] // Inhalt rechts: [Inhalt] | ||
+ | |||
+ | - $block['customblock_XXX'] // Inhalt Eigene Blöcke XXX [Inhalt] | ||
+ | |||
+ | - $block['errortext'] // Inhalt Fehler: [Inhalt] | ||
+ | </file> | ||
+ | |||
+ | \\ | ||
===== Einbinden einer statischen Datei als Vorlage in "Haupt:" ===== | ===== Einbinden einer statischen Datei als Vorlage in "Haupt:" ===== | ||
Line 12: | Line 45: | ||
* $phpwcms['allow_ext_init'] = 1; | * $phpwcms['allow_ext_init'] = 1; | ||
+ | \\ | ||
In dem Verzeichnis **template/inc_script/frontend_init/** wird die Datei **template_inject01.php** mit folgendem Inhalt abgelegt: | In dem Verzeichnis **template/inc_script/frontend_init/** wird die Datei **template_inject01.php** mit folgendem Inhalt abgelegt: | ||
Line 38: | Line 71: | ||
\\ | \\ | ||
- | Die Vorlagendatei heißt in diesem Beispiel "main01.php" und ist in "template/inc_script/template/" abgelegt. \\ | + | Die Vorlagendatei heißt in diesem Beispiel **main01.php** und ist in **template/inc_script/template/** abgelegt. \\ |
- | Das Script schaut im Vorlagenblock "Haupt:" nach ob dort die der Text "main01.php" eingetragen ist. (Und nur dieser). | + | Das Script schaut im Vorlagenblock "Haupt:" nach ob dort der Text **main01.php** eingetragen ist. (Und nur dieser). |
+ | |||
+ | In **main01.php** wird der Quelltext für "Haupt:" abgelegt ohne den öffnenden/schließenden PHP-Tag %%<?php .... ?>%%. | ||
<note important> | <note important> | ||
Line 48: | Line 83: | ||
\\ | \\ | ||
+ | \\ | ||
Line 73: | Line 108: | ||
* $phpwcms['allow_ext_init'] = 1; | * $phpwcms['allow_ext_init'] = 1; | ||
+ | \\ | ||
In dem Verzeichnis **template/inc_script/frontend_init/** wird die Datei **template_inject02.php** mit folgendem Inhalt abgelegt: | In dem Verzeichnis **template/inc_script/frontend_init/** wird die Datei **template_inject02.php** mit folgendem Inhalt abgelegt: | ||