z.b. um eine sidebar-navigation nur in bestimmten kategorien ein zu blenden.
über REX_CATEGORY_ID?
Code: Alles auswählen
if ( REX_CATEGORY_ID == "42" ){ echo REX_TEMPLATE[id]; }
Code: Alles auswählen
if ( REX_CATEGORY_ID == "42" ){ echo REX_TEMPLATE[id]; }
Code: Alles auswählen
<?php
$path = explode("|",$this->getValue("path").$this->getValue('article_id')."|");
$path1 = ''; $path2 = ''; $path3 = ''; $path4 = ''; $path5 = '';
if (isset($path[1]) && $path[1] != '') $path1 = (int)$path[1];
if (isset($path[2]) && $path[2] != '') $path2 = (int)$path[2];
if (isset($path[3]) && $path[3] != '') $path3 = (int)$path[3];
if (isset($path[4]) && $path[4] != '') $path4 = (int)$path[4];
if (isset($path[5]) && $path[5] != '') $path5 = (int)$path[5];
if ($path[1] == 42) {
$template = new rex_template(2);
include $template->getFile();
}
?>