Warning: session_start(): open(/www/htdocs/w017651d/tmp/wiki//sess_a1a882be6f8abe1fbca686a7b79aac5d, 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_a1a882be6f8abe1fbca686a7b79aac5d, 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
Sektionen [BlackCat CMS Dokumentation, Tutorials, Tipps und Tricks]

Benutzer-Werkzeuge

Webseiten-Werkzeuge


faq:templates:blocks

Sektionen

Wie kann ich prüfen, ob ein Block (=eine Sektion) Inhalte hat?

Dieses Beispiel prüft, ob auf der gerade angezeigten Seiten der Block mit der Nummer 2 belegt ist.

{if check_block(2)}...{/if}

Somit ist es beispielsweise ganz einfach, umgebenden HTML-Quelltext nur dann hinzuzufügen, wenn die jeweilige Sektion Inhalte hat.

  {if check_block(2)}
  <div id="myspecialdiv" class="sidebar">
  {page_content(2)}
  </div>
  {/if}

faq/templates/blocks.txt · Zuletzt geändert: 2014/09/05 00:00 (Externe Bearbeitung)