Differences

This shows you the differences between two versions of the page.

deutsch:navigationen:dropdown_flyout:nav_horiz_dd [2010/09/04 07:11]
Knut Heermann (flip-flop)
deutsch:navigationen:dropdown_flyout:nav_horiz_dd [2018/06/03 18:09] (current)
Line 17: Line 17:
**CMS-Version:** >= V1.2.8  \\ **CMS-Version:** >= V1.2.8  \\
**Version:** V1.0  //28.04.08// \\ **Version:** V1.0  //28.04.08// \\
-**Update Version:** V1.1 //04.09.2010// \\+**Update Version:** V1.01 //04.09.2010// \\
- Der Link "Home" kann wahlweise dargestellt werden (Im PHP-Script ein/ausschalten). \\ - Der Link "Home" kann wahlweise dargestellt werden (Im PHP-Script ein/ausschalten). \\
Line 28: Line 28:
  * Überlappen und Überfahr(rahm)en !!!   * Überlappen und Überfahr(rahm)en !!!
  * Start-ID im RT   * Start-ID im RT
-  * Max Leveltiefe im RT (seit 28.04.08)+  * Max Leveltiefe im RT //(seit 28.04.08)//
  * Aktiver Pfad wird für die erste Ebene gekennzeichnet   * Aktiver Pfad wird für die erste Ebene gekennzeichnet
-  * Jedes li hat eine eigene Klasse (optional) +  * Jedes li hat eine eigene Klasse //(optional)// 
-  * Home kann dargestellt werden (optional in V1.1)+  * Home kann dargestellt werden //(optional in V1.01 seit 04.09.10)//
  * Einfache html Tags in der Kategorieüberschrift wie [i] [b] [u] [s]   * Einfache html Tags in der Kategorieüberschrift wie [i] [b] [u] [s]
Line 79: Line 79:
--- Ebene05 --- Ebene05
</code> </code>
 +**V1.0:**
  * Es wird im Artikel von **root** nach **home** weitergeleitet //(permanent 301)//. \\   * Es wird im Artikel von **root** nach **home** weitergeleitet //(permanent 301)//. \\
-    * Weiterleitung [index.php?home]+    * Weiterleitung [index.php?home] \\ 
 + 
 +**V1.01:** 
 +  * Weiterleitung von **root** nach **home** nicht notwendig, im Script kann der Link ein/ausgeschaltet werden (//in %%==== Custom var ====%%)// \\ Generierter code: ##%%<li id="cat-id_0" class="drop home"><a class="first" href="....%%## \\
---- ----
Line 258: Line 262:
\\ \\
-==== PHP V1.1 ====+==== PHP V1.01 ====
Dateiname: **rt_nav_horiz_drop_down.php** Dateiname: **rt_nav_horiz_drop_down.php**
Line 267: Line 271:
<?php <?php
// ************************************************************************** // **************************************************************************
-// Version 1.1 04.09.2010 KH+// Version 1.01 04.09.2010 KH
// 25.07.07 horizontal drop-down with ID output -> NAVI HORIZONTAL DROP-DOWN // 25.07.07 horizontal drop-down with ID output -> NAVI HORIZONTAL DROP-DOWN
// Oliver Georgi // Oliver Georgi
Line 273: Line 277:
// 08.11.07 KH (flip-flop) Enhanced: Start[ID] {NAV_HORIZ_DD:ID} // 08.11.07 KH (flip-flop) Enhanced: Start[ID] {NAV_HORIZ_DD:ID}
// 28.04.08 KH (flip-flop) Enhanced: Level depth {NAV_HORIZ_DD:ID,Depth} // 28.04.08 KH (flip-flop) Enhanced: Level depth {NAV_HORIZ_DD:ID,Depth}
-// 04.09.10 KH (flip-flop) Enhanced: Home link (enable/disable around line 42)+// 04.09.10 KH (flip-flop) Enhanced: Home link (enable/disable around line 36)
// http://www.phpwcms.de/forum/viewtopic.php?p=94688#94688 // http://www.phpwcms.de/forum/viewtopic.php?p=94688#94688
// //
Line 298: Line 302:
function buildNavi_horiz($start=0, $counter=0, $depth=0) { function buildNavi_horiz($start=0, $counter=0, $depth=0) {
     
-   $t = array();+// ============ Custom var ===========
     
-   $struct = getStructureChildData($start); // Catch structure+   $home_link = false;  // [true|false] = [enabled|disabled]
     
 +// ============ END Custom var =======
 +
 +
 +   $t = array();
 + 
 +   $struct = getStructureChildData($start);  // Catch structure
 + 
   if($counter == 0) {    if($counter == 0) {
      $last = count($struct) - 1;       $last = count($struct) - 1;
    // ======== Only if you want home // Nur wenn Home gewuenscht     // ======== Only if you want home // Nur wenn Home gewuenscht
-      /* +      if ($home_link) { 
-      $l  = '<li id="cat-id_0" class="drop home">'; +          $l  = '<li id="cat-id_0" class="drop home">'; 
-      $l .= get_level_ahref(0, ' class="first"') . '<span>'. html_specialchars($GLOBALS['content']['struct'][0]['acat_name']); +          $l .= get_level_ahref(0, ' class="first"') . '<span>'. html_specialchars($GLOBALS['content']['struct'][0]['acat_name']); 
-      $l .= '</span></a></li>'; +          $l .= '</span></a></li>'; 
-      $t[] = $l; +          $t[] = $l; 
-      */+      }
    // ======= END Home     // ======= END Home
             
deutsch/navigationen/dropdown_flyout/nav_horiz_dd.1283577114.txt.gz · Last modified: 2018/06/03 18:07 (external edit)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0