Differences

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

english:navigation:little-helper:level-lift [2009/07/12 08:04]
Knut Heermann (flip-flop)
english:navigation:little-helper:level-lift [2018/06/03 18:09] (current)
Line 3: Line 3:
====== Level-Lift ====== ====== Level-Lift ======
-FIXME translate+
Level can be queried independently the ID, in addition it requires a small script. I represent here the fundamental use. Level can be queried independently the ID, in addition it requires a small script. I represent here the fundamental use.
Line 87: Line 87:
[/PHP] [/PHP]
</code> </code>
-Ein klassisches Beispiel für eine **ID-basierte absolut adressierte Abfrage**. Egal an welcher Stelle sich der User auf der Seite befindet //(außer in category_02_01)// es wird immer ein Bild ausgeliefert. 
A classical example of an ** ID-based absolutely addressed query **. It is insignificant in which place the user on the side is   A classical example of an ** ID-based absolutely addressed query **. It is insignificant in which place the user on the side is  
-//(except in category_02_01)// always a picture is delivered. +//(except in category_02_01), // always a picture is delivered.
I would like to display a own picture in each case for the first, second and third level, therefore I must check the level. I would like to display a own picture in each case for the first, second and third level, therefore I must check the level.
Line 96: Line 95:
=== Level-based: === === Level-based: ===
-<code php|h Level check |h>>+<code php|h Level check |h>
[PHP] [PHP]
$my_image = 'img/backend/preinfo2.jpg';  // preset picture level 0 and 1 $my_image = 'img/backend/preinfo2.jpg';  // preset picture level 0 and 1
Line 153: Line 152:
Level = column No. 0, 1, 2, .... (relative navigation) \\ Level = column No. 0, 1, 2, .... (relative navigation) \\
ID= Numeral value of the side level in the side structure (move mouse over the little book sheet) (absolute navigation)   ID= Numeral value of the side level in the side structure (move mouse over the little book sheet) (absolute navigation)  
 +
 +\\
 +
 +**Since version r317 available:** //[[english/technics/system-variables#new_tag_levelx_id|New tag {LEVELX_ID}]] //
 +
 +<code php>
 +[PHP]
 +if(isset($GLOBALS['LEVEL_ID'][1])) {  // hier wird das erste Level abgefragt
 +echo '<div class="untermenu">'.LF;
 +echo '<h1>Filme</h1>'.LF;
 +echo '{NAV_LIST_UL:F,{LEVEL1_ID},1,act_path,active,,,#|}';
 +echo '</div>';
 +}
 +[/PHP]
 +</code>
 +
Have a look: [[english:navigation:nav_list_ul-example:navi-different-level]] Have a look: [[english:navigation:nav_list_ul-example:navi-different-level]]
english/navigation/little-helper/level-lift.1247378687.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