Differences

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

english:navigation:dropdown-flyout:nav_horiz_dd [2010/09/04 07:13]
Knut Heermann (flip-flop)
english:navigation:dropdown-flyout:nav_horiz_dd [2018/06/03 18:09] (current)
Line 15: Line 15:
Forum: [[http://forum.phpwcms.org/viewtopic.php?t=16080]] Forum: [[http://forum.phpwcms.org/viewtopic.php?t=16080]]
-**Autor:** K.Heermann (flip-flop) http://planmatrix.de //(05.05.09)// \\+**Author:** K.Heermann (flip-flop) http://planmatrix.de //(05.05.09)// \\
**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.01 //04.09.2010// \\
 +- The link "Home" can either be presented (In the PHP script on/off).
Line 27: Line 29:
  * Overlap and Overrun !!!   * Overlap and Overrun !!!
  * Start-ID im RT   * Start-ID im RT
-  * Level depth in rt (since 28.04.08) (Only php file changed)+  * Level depth in rt //(since 28.04.08)// //(Only php file changed)//
  * active path for the first level   * active path for the first level
-  * every li has it´s own class (optional)+  * every li has it´s own class //(optional)// 
 +  * Home can be shown //(optional in V1.1 since 04.09.10)//
  * simple Tags in category headline like [i] [b] [u] [s]   * simple Tags in category headline like [i] [b] [u] [s]
Line 58: Line 61:
==== TAG ==== ==== TAG ====
-**{NAV_HORIZ_DD:ID,Level depth}** -> z.B. //Output beginning in level 0 (home/root) with level depht limitation of 2.//+**{NAV_HORIZ_DD:ID,Level depth}** -> e.g. //Output beginning at level 0 (home/root) with level depht limitation of 2.//
<code html><div id="menu_container">{NAV_HORIZ_DD:0,2}</div></code> <code html><div id="menu_container">{NAV_HORIZ_DD:0,2}</div></code>
Line 76: Line 79:
--- Ebene05 --- Ebene05
</code> </code>
-  * There is a redirect in the **root** article to ** home ** //(permanently 301)//. \\ +** 
-    * Redirect to [index.php?home]+V1.0:** 
 +  * There is a redirect for the **root** article to ** home ** //(permanently 301)//. \\ 
 +    * Redirecting to [index.php?home] 
 + 
 + 
 +**V1.01:** 
 +  * Redirecting from **root** to **home** isn´t necessary, because by editing (//%%==== Custom var ====%%)// around line 36 of the script you can turn on/off the link  \\ Generated code: ##%%<li id="cat-id_0" class="drop home"><a class="first" href="....%%## \\
---- ----
Line 136: Line 145:
     
// Is it a active path ?      ======== // Is it a active path ?      ========
-// Ist dies der aktive Pfad ? ========+// Ist dies der aktive Pfad  
 + 
 + ========
      if( isset($GLOBALS['LEVEL_KEY'][ $value['acat_id'] ]) ) {       if( isset($GLOBALS['LEVEL_KEY'][ $value['acat_id'] ]) ) {
         
Line 255: Line 266:
\\ \\
-==== PHP V1.1 ====+==== PHP V1.01 ====
Dateiname: **rt_nav_horiz_drop_down.php** Dateiname: **rt_nav_horiz_drop_down.php**
Line 264: Line 275:
<?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 270: Line 281:
// 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 295: Line 306:
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
             
english/navigation/dropdown-flyout/nav_horiz_dd.1283577219.txt.gz · Last modified: 2018/06/03 18:08 (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