Warning: session_start(): open(/www/htdocs/w017651d/tmp/wiki//sess_6a31fbf302156e8ebbe3b273cb478b36, O_RDWR) failed: No such file or directory (2) in /www/htdocs/w017651d/wiki.blackcat-cms.org/inc/init.php on line 247

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /www/htdocs/w017651d/wiki.blackcat-cms.org/inc/init.php:247) in /www/htdocs/w017651d/wiki.blackcat-cms.org/inc/init.php on line 247

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w017651d/wiki.blackcat-cms.org/inc/init.php:247) in /www/htdocs/w017651d/wiki.blackcat-cms.org/inc/auth.php on line 424

Warning: session_write_close(): open(/www/htdocs/w017651d/tmp/wiki//sess_6a31fbf302156e8ebbe3b273cb478b36, O_RDWR) failed: No such file or directory (2) in /www/htdocs/w017651d/wiki.blackcat-cms.org/doku.php on line 121

Warning: session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/www/htdocs/w017651d/tmp/wiki/) in /www/htdocs/w017651d/wiki.blackcat-cms.org/doku.php on line 121

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w017651d/wiki.blackcat-cms.org/inc/init.php:247) in /www/htdocs/w017651d/wiki.blackcat-cms.org/inc/actions.php on line 210

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w017651d/wiki.blackcat-cms.org/inc/init.php:247) in /www/htdocs/w017651d/wiki.blackcat-cms.org/lib/tpl/dokuwiki/main.php on line 12
Varianten [BlackCat CMS Dokumentation, Tutorials, Tipps und Tricks]

Benutzer-Werkzeuge

Webseiten-Werkzeuge


faq:templates:variants

Varianten

Normalerweise werden die vorhandenen Template-Varianten in der Datei info.php im Array $template_variants angegeben. Man kann die vorhandenen Varianten (also Unterverzeichnisse) aber auch automatisch ermitteln lassen. Hierzu kann einfach der Directory-Helper verwendet werden:

$template_variants = CAT_Helper_Directory::getInstance()
                   ->maxRecursionDepth(0)
                   ->getDirectories(
                         CAT_PATH.'/templates/'.$template_directory.'/templates',
                         CAT_PATH.'/templates/'.$template_directory.'/templates/'
                     );

Dieser Code gehört natürlich in die info.php!

Das funktioniert analog auch mit Modul-Varianten. Hier nur die Pfade in getDirectories entsprechend anpassen.

faq/templates/variants.txt · Zuletzt geändert: 2015/02/04 00:00 (Externe Bearbeitung)