Processwire - Themes / Templates: Unterschied zwischen den Versionen
Aus Wikizone
(→Links) |
|||
| Zeile 1: | Zeile 1: | ||
== Links == | == Links == | ||
| − | * Processwire - Template from Scratch | + | Siehe auch |
| + | * [[Processwire - Template from Scratch]] | ||
| + | |||
== Theme Strategien == | == Theme Strategien == | ||
=== Basic Theme === | === Basic Theme === | ||
Version vom 30. März 2017, 10:33 Uhr
Links
Siehe auch
Theme Strategien
Basic Theme
templates/ _func.inc _init.inc _main.inc templates/partials foot.inc head.inc
Delayed Output
Über prependTemplateFile und appendTemplateFile verarbeitet man die Templates wenn alle Inhalte zusammengesetzt sind.
config.php
<?php
...
$config->debug = false;
$config->sessionFingerprint = true;
$config->prependTemplateFile = '_init.php';
$config->appendTemplateFile = '_main.php';
$config->imageSizerOptions = array(
'upscaling' => true, // upscale if necessary to reach target size?
'cropping' => true, // crop if necessary to reach target size?
'autoRotation' => true, // automatically correct orientation?
'sharpening' => 'soft', // sharpening: none | soft | medium | strong
'quality' => 90, // quality: 1-100 where higher is better but bigger
);
templates/ _func.inc _init.inc _main.inc templates/partials foot.inc head.inc
AJAX Driven Theme
config.php
// if ajax request set $ajax = $input->post->ajax;