Differences

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

english:technics:system-variables:templates [2010/09/26 18:12]
Claus
english:technics:system-variables:templates [2018/06/03 18:09] (current)
Line 3: Line 3:
====== Templates ====== ====== Templates ======
 +Have a look: [[english/templates]]
 +\\
 +**System variables:**
 +<file>
 +- $block['name']              // name:                      [Template name]
 +- $block['layout']            // layout:                    [layout-No.]
 +- $block['overwrite']         // settings:                  [default|Name of the PHP file in /template/inc_settings/template_default/]
 +
 +- $block["css"]               // CSS file: Output into an array e.g. Array([0] => frontend.css [1] => nav_horiz_drop_down.css)
 +- $block['htmlhead']          // Content HTML head: <head>
 +
 +- $block['jslib']             // JS Library:                [Lib name]
 +- $block['jslibload']         // always load                [0|1]
 +- $block['googleapi']         // use Google Ajax Lib        [0|1]
 +
 +- $block['frontendjs']        // load frontend.js (more for historical reasons) [0|1]
 +- $block['jsonload']          // JS onload:                 [JS string]
 +- $block['feloginurl']        // FE LoginURL:               [url]
 +
 +- $block['headertext']        // Content header:            [Content]
 +- $block['maintext']          // Content main:              [Content]
 +- $block['footertext']        // Content footer:            [Content]
 +- $block['lefttext']          // Content left:              [Content]
 +- $block['righttext']         // Content right:             [Content]
 +
 +- $block['customblock_XXX']   // Content custom blocks XXX  [Content]
 +
 +- $block['errortext']         // Content error:             [Content]
 +</file>
 +
 +\\
===== Mount a static file as a template in the "main:"  ===== ===== Mount a static file as a template in the "main:"  =====
Line 60: Line 91:
===== Template: Embed the fields "header:", "footer:", "left:", "right:" in "main:" ===== ===== Template: Embed the fields "header:", "footer:", "left:", "right:" in "main:" =====
-Normally these fields are no longer usefully, there these fields with the layout variant rendering: "custom" not to be queried. \\+Normally these fields aren't useful any more, because these fields with the layout variant rendering: "custom" will not be queried. \\
With a small replacer it is however possible to merge these input fields into the field "main:". \\ With a small replacer it is however possible to merge these input fields into the field "main:". \\
Line 70: Line 101:
<note> <note>
-It may happen that some functions in the alternative fields will be processed by the system before inserting in "main". If so, please place the instructions directly into the "main:" field. Alternatively, the RT (SHOW_CONTENT :.....} could be used.+It may happen that some functions in the alternative fields will be processed by the system before being inserted into "main". If so, please place the instructions directly into the "main:" field. Alternatively, the RT (SHOW_CONTENT :.....} could be used.
</note> </note>
Line 78: Line 109:
\\ \\
-Please insert into the folder **template/inc_script/frontend_init/** the file **template_inject02.php** with the following content: +Please insert the file **template_inject02.php** with the following content into the folder **template/inc_script/frontend_init/** :
<code php|h template_inject02.php |h> <code php|h template_inject02.php |h>
Line 116: Line 147:
<note important> <note important>
-To make fast the query the presence of tags is not tested in the "main:" field. It is your responsibility to use only tags, although the corresponding content is available in alternative fields. +To speed up the query the presence of tags is not tested in the "main:" field. It is your responsibility to use only tags, although the corresponding content is available in alternative fields.
</note> </note>
english/technics/system-variables/templates.1285517530.txt.gz · Last modified: 2018/06/03 18:07 (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