{{indexmenu_n>200}} ====== NAV_ROWX ====== **RT NAV_ROW ausgelager nach "%%/frontend_render/*%%" und erweitert um das "title" Atribut mit dem Inhalt aus "Seitentitel:" zu erzeugen.** ---- **rt_word_text_title** V1.0 05.01.11 Docu: [[http://www.phpwcms-docu.de/navigations_tags_.phtml|Replacement Tags für die Navigation]] \\ Forum: [[http://forum.phpwcms.org/viewtopic.php?f=8&p=117330#p117330|Wiederkehrenden Begriff durch Variable ersetzen]] **Autor:** O.Georgi http://phpwcms.de -> Erweitert: K.Heermann (flip-flop) http://planmatrix.de \\ **CMS Version:** >= 1.3 \\ **Version:** V1.0 \\ Tag: **{NAV_ROWX:...}** (Parameter wie in [[http://www.phpwcms-docu.de/navigations_tags_.phtml|Replacement Tags für die Navigation]] beschrieben) Einige Einstellungen zur Ausgabe können in der Datei "config/phpwcms/conf.template_default.inc.php" unter // row based navigation $template_default['nav_row'] .... vorgenommen werden. \\ Dateiname: **rt_nav_row_x.php** Verzeichnis: ** template/inc_script/frontend_render/ ** **Bedingung:** -> [[http://www.phpwcms-docu.de/config_dateien.phtml|/config/phpwcms/conf.inc.php]] \\ * ##$phpwcms['allow_ext_render'] = 1;## ---- ---- \\ ==== Quelltext ==== Update: 11.01.11 KH '.$direct_before; $nav .= html_specialchars($GLOBALS['content']['struct'][$act_cat_id]['acat_name']); $nav .= $direct_after.''.$after; } // check against breadcrumb - active site tree if($GLOBALS['content']['struct'][$GLOBALS['content']["cat_id"]]['acat_struct'] != 0) { $breadcrumb = get_breadcrumb($GLOBALS['content']["cat_id"], $GLOBALS['content']['struct']); } foreach($GLOBALS['content']['struct'] as $key => $value) { if($key != $act_cat_id && _getStructureLevelDisplayStatus($key, $act_cat_id) ) { $class = empty($GLOBALS['content']['struct'][$key]["acat_class"]) ? '' : ' class="'.$GLOBALS['content']['struct'][$key]["acat_class"].'"'; // +KH 05.01.11 title $class .= (empty($GLOBALS['content']['struct'][$key]['acat_pagetitle']) ? '' : ' title="'.$GLOBALS['content']['struct'][$key]['acat_pagetitle'].'"'); if($nav) { $nav .= $GLOBALS['template_default']["nav_row"]["between"]; } if($GLOBALS['content']["cat_id"] == $key || isset($breadcrumb[$key])) { $before = $GLOBALS['template_default']["nav_row"]["link_before_active"]; $after = $GLOBALS['template_default']["nav_row"]["link_after_active"]; $direct_before = $GLOBALS['template_default']["nav_row"]["link_direct_before_active"]; $direct_after = $GLOBALS['template_default']["nav_row"]["link_direct_after_active"]; } else { $before = $GLOBALS['template_default']["nav_row"]["link_before"]; $after = $GLOBALS['template_default']["nav_row"]["link_after"]; $direct_before = $GLOBALS['template_default']["nav_row"]["link_direct_before"]; $direct_after = $GLOBALS['template_default']["nav_row"]["link_direct_after"]; } $nav .= $before; if(!$GLOBALS['content']['struct'][$key]["acat_redirect"]) { $nav .= ''; } else { $redirect = get_redirect_link($GLOBALS['content']['struct'][$key]["acat_redirect"], ' ', ''); $nav .= ''; } $nav .= $direct_before; $nav .= html_specialchars($GLOBALS['content']['struct'][$key]['acat_name']);; $nav .= $direct_after.''.$after; } } if($nav) { $nav = $GLOBALS['template_default']["nav_row"]["before"].$nav; $nav .= $GLOBALS['template_default']["nav_row"]["after"]; } // -- ------------------------------------------------------------------- // EDIT: 07/11/25 KH. (flip-flop) including simple Tags in category headline from the file // /include/inc_front/front.func.inc.php and the function html_parser($string) // typical html formattings $search[18] = '/\[i\](.*?)\[\/i\]/is'; $replace[18] = '$1'; $search[19] = '/\[u\](.*?)\[\/u\]/is'; $replace[19] = '$1'; $search[20] = '/\[s\](.*?)\[\/s\]/is'; $replace[20] = '$1'; $search[21] = '/\[b\](.*?)\[\/b\]/is'; $replace[21] = '$1'; $search[22] = '/\[br\]/is'; $replace[22] = '
'; $nav = preg_replace($search, $replace, $nav); // -- ------------------------------------------------------------------- return $nav; } ?>
\\