Differences

This shows you the differences between two versions of the page.

deutsch:technik:aufruf-interner-funktionen:skript-in-den-head-bereich [2011/08/25 09:22]
Knut Heermann (flip-flop)
deutsch:technik:aufruf-interner-funktionen:skript-in-den-head-bereich [2018/06/03 18:08] (current)
Line 63: Line 63:
\\ \\
-**Ab phpwcms r411:** +**Sonderfall CSS-Datei in /template/inc_css/***
 +Hierzu gibt es ein eigenes Array ['block']['css'], das direkt das Verzeichnis /template/inc_css/* ansteuert. \\
 +Bsp.:
 +<code php>
 +$GLOBALS['block']['css']['reg_tabs_accordion01_login'] = 'specific/reg_tabs_accordion01_login.css';
 +</code>
 +
 +
 +\\
 +
 +
 +==== Ab phpwcms r411: ====
Forum: [[http://forum.phpwcms.org/viewtopic.php?p=127961#p127961|…and some more too]] Forum: [[http://forum.phpwcms.org/viewtopic.php?p=127961#p127961|…and some more too]]
-<code css+<note important
-   <!--CSS:  +**Notation:** %%<!--%%##%% %%##%%[CSS:|JS:]%%##%% %%##Anweisung##%% %%##%%-->%%
-   #header { +
-      background: #F9E931 url(template/img/mozilla.png) no-repeat left top !important; +
-      background: #F9E931 url(template/img/mozilla.png) no-repeat left top;  +
-   } +
-   -->  +
-</code>+
 +Die gekennzeichneten Leerzeichen##%% %%##  sind zwingend!!
 +</note>
 +=== CSS: ===
 +
 +<code css>
 +<!-- CSS: {TEMPLATE}inc_css/my.css -->
 +</code>
\\ \\
-**Sonderfall CSS-Datei in /template/inc_css/*** 
-Hierzu gibt es ein eigenes Array ['block']['css'], das direkt das Verzeichnis /template/inc_css/* ansteuert. \\ +- Als Inline CSS: 
-Bsp.+ 
-<code php+<code css
-$GLOBALS['block']['css']['reg_tabs_accordion01_login'] = 'specific/reg_tabs_accordion01_login.css';+<!-- CSS: body {background:yellow;} --> 
 +<!-- CSS: 
 +  body { 
 +    background:yellow; 
 +  } 
 +  a { 
 +    text-decoration: none; 
 +    background: transparent url({TEMPLATE}img/link.png) no-repeat left center; 
 +    padding-left: 25px; 
 +  } 
 +-->;
</code> </code>
\\ \\
-**Ab phpwcms r411:** +=== JavaScript: === 
 +Aktuell im Sitetemplate ausgewählte (aber nicht standardmäßig zu laden aktivierte) js-libary starten:
<code html> <code html>
-<!-- CSS: {TEMPLATE}inc_css/my.css -->+<!-- JS: initJSLib -->
</code> </code>
- 
\\ \\
- +- andere JS-Dateine einbinden
-**JavaScript:**+
<code html> <code html>
<!-- JS: {TEMPLATE}inc_js/calendarDateInput/calendarDateInputX.js --> <!-- JS: {TEMPLATE}inc_js/calendarDateInput/calendarDateInputX.js -->
Line 103: Line 123:
</code> </code>
 +\\
- Plugins einbinden (jQuery) z.B. mit den Dateien in: - Plugins einbinden (jQuery) z.B. mit den Dateien in:
  * template/lib/jquery/plugin/ui-1.8.custom.min.js   * template/lib/jquery/plugin/ui-1.8.custom.min.js
Line 122: Line 143:
<!-- JS: flext --> <!-- JS: flext -->
<!-- JS: Quickie-yui --> <!-- JS: Quickie-yui -->
 +</code>
 +
 +\\
 +- Laden von More Komponenten:
 +
 +<code html>
 +<!-- JS: myplugin -->
 +<!-- JS: MORE:Fx/Fx.Elements,Fx/Fx.Accordion -->
 +</code>
 +\\
 +
 +- Mehrzeiliges JavaScript als <script /> im "head" Bereich.
 +
 +Alle gleichen JavaScript-Abschnitt wie in sich wiederholenden ContentParts einmal gerendert. \\
 +Um als JavaScript erkannt zu werden brauchen wir ##%%;%%##, ##%%//%%## und/oder ##%%/*%%##.\\
 +Der Abschluss einer JavaScript Zeile mit einem ##%%;%%## ist der sicherste Weg:
 +
 +<code html>
 +<!-- JS:
 +  // My Custom JS
 +  alert('hey dude it works as expected');
 +-->
</code> </code>
deutsch/technik/aufruf-interner-funktionen/skript-in-den-head-bereich.1314256951.txt.gz · Last modified: 2018/06/03 18:06 (external edit)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0