{NAV_ROW_LEVEL} Updated 14-12-2005 with enhancement

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
Post Reply
jon rain
Posts: 39
Joined: Wed 23. Nov 2005, 17:04
Location: wels, austria

{NAV_ROW_LEVEL} Updated 14-12-2005 with enhancement

Post by jon rain »

Hallo,Hi,

!!!updated 14-12-2005!!!

!!updated 02-01-2005!!! NAV_ROW_LEVEL -> NAV_ROW_LEVELS
Syntax for All with 's
NAV_ROW_LEVELS
NAV_TAB_LEVELS
BREADCRUMB_LEVELS



This new replacementtag allows you to show a selected LEvel of the Menu in horicontal arrangement like NAV_ROW.

NAV_ROW_LEVELS
Version: 1.0
Replacementtag for NAV_ROW_LEVELS
This replacementtag allows you to show an specific level of the Menu. Also you can
show the home-level in first. It is possible to hide the menu if there is no such
level in tree. If you use level 0 or level 1 it is near the same as NAV_ROW.

Stetting classes and path Like NAV_TAB_LEVELS!
ATTENTION: The File in download below replaces NAV_TAB_LEVELS.php, because there are same function used!!


NEW: you can use different classes for different levels, and you can set the position. Direct before is after anchor for link und before is before anchor!

Classes: levRowClass with leveldepth (levRowClass0, levRowClass1,...) with Prefix (jr_levRowClass0, jr_levRowClass1,...)

OLD: {NAV_ROW_LEVEL:2:0:1}


NEW: {NAV_ROW_LEVELS:2:0:1:1:jr_:d}

· :2 set wich level to display (>= 0, usefull >= level 2)
· :0 show Home or not (1: yes, 0:no)
· :1 hide the Menu if there is no submenu in the choosen level (1: yes, 0:no)
· :1 use level classes (1: yes, 0:no)
· :jr_ using different class for NAV_ROW_LEVEL call (any character)
· :d set the position of the class (d=direct before link, b=before link)



Mit diesem Replacementtag kannst Du ein horizontales Menü anzeigen lasse, das nur den von Dir vorgegebenen Level anzeigt.

Version: 1.0
Replacementtag for NAV_ROW_LEVELS
Mit diesem Replacementtag kann man eine Ebene des Menüs horizontal ausgeben.Weiters kann das Home-Menü ein oder ausgeblendet werden.
Das Menü kann versteckt werden, wenn keine entsprechende Ebene gefunden wurde. Die Ebenen 0 und 1 haben die gleiche Wirkung wie NAV_ROW. Hier sollte man als erste auswählbare Ebene die eins verwenden, wenn dies nciht der Ersatz von NAV_ROW ist.

Die Einstellungen sind wie bei NAV_TAB_LEVELS!
ACHTUNG: die unten zum Download zur Verfügung gestellte Datei ersetzt die DATEI NAV_TAB_LEVELS.php, da die gleichen Funtkionen benutzt werden!


NEU: Man kann nun für jede Ebene eine eigene Klasse setzen und die position der Klasse bestimmen. Direct befor bedeutet, dass die Klasse nachdem Link ANker ist und befor bedeutet das die Klasse vor dem Anker ist .


Klasses: levRowClass mit anschließender Ebene (levRowClass0, levRowClass1,...) mitPrefix (jr_levRowClass0, jr_levRowClass1,...)



ALT: {NAV_ROW_LEVEL:2:0:1}

NEU: {NAV_ROW_LEVELS:2:0:1:1:jr_:d}



· :2 Ebene die angezeigt werden soll(>= 0, nütrzlich ab Ebene 2 / >= level 2)
· :0 Anzeige von Home oder nicht (1: yes, 0:no)
· :1 verstecken des Menüs wenn keine entsprechende Ebene gefunden wurde. (1: yes, 0:no)

· :1 eigen Ebenenklassen verwenden (1: yes, 0:no)
· :jr_ Prefix für Aufruf der bei NAV_ROW_LEVELS (jedes Zeichen)
· :d Position der Klasse bestimmen(d=direct before link, b=before link)





Einstellungen in conf.inc.php, wenn noch nicht eingetragen
- ../config/phpwcms/conf.inc.php:
$phpwcms["allow_ext_init"] = 1;
$phpwcms["allow_ext_render"] = 1;
- Kopieren der zur Verfügugn gestellten php-Datei into
phpwcms_template/inc_script/frontend_render/
Umbenennen und Underline hinter php löschen



Settings in conf.inc.php, if not registered

- for use of this you must set in ../config/phpwcms/conf.inc.php:
$phpwcms["allow_ext_init"] = 1;
$phpwcms["allow_ext_render"] = 1;
- copy the provided .php-file into
phpwcms_template/inc_script/frontend_render/
delete the underline after php in filename


Beschreibung von NAV_TAB_LEVELS siehe:

description of NAV_TAB_LEVELS at:


http://www.phpwcms.de/forum/viewtopic.php?t=9213



DOWNLOAD:

http://www.regenfelder.net/downloads/NA ... LEVELS.zip
or
http://www.act2opt.at/downloads/NAV_TAB_ROW_LEVELS.zip
Last edited by jon rain on Fri 27. Jan 2006, 01:11, edited 6 times in total.
jon rain
Posts: 39
Joined: Wed 23. Nov 2005, 17:04
Location: wels, austria

Re: {NAV_ROW_LEVEL}

Post by jon rain »

Hi,

There was a little bug. Two comments for developping was not remarked.

New download will be able today (06.12.2005) at 15:00

sorry
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post by cyrano »

hi jon_rain,

nice RT- can the {NAV_ROW_LEVEL} Tag also be used with different CSS classes as the {NAV_TABEL_LEVELS}?

Or could be enhanced?

I want to get the page which is selected in another color.

Anyway - great long needed stuff you made.
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
jon rain
Posts: 39
Joined: Wed 23. Nov 2005, 17:04
Location: wels, austria

Post by jon rain »

Hi cyrano,

You can use the class: nav_row in frontend.css for setting the other color.

.nav_row a:active {
color: #000080;
text-decoration: none
}

.nav_row a,.nav_row a:visited {
color: #4A69AA;
font-weight: bold;
text-decoration: none;
}

.nav_row a:hover {
color: #000080;
font-weight: bold;
text-decoration: underline;
}





cyrano wrote:hi jon_rain,

nice RT- can the {NAV_ROW_LEVEL} Tag also be used with different CSS classes as the {NAV_TABEL_LEVELS}?

Or could be enhanced?

I want to get the page which is selected in another color.

Anyway - great long needed stuff you made.
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post by cyrano »

hi jon rain,

thank you for reply.

i digged this out and works, but this lacks also when using another RTs.

When i click on a aubpage i want to highlighten this when selected and loaded as it is for e.g. when using the breadcrumb RT.

I will check my css settings now first...
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
jon rain
Posts: 39
Joined: Wed 23. Nov 2005, 17:04
Location: wels, austria

Post by jon rain »

Hi cyrano,

It depends on the order of the class entries!

.nav_row a {
color: #4A69AA;
font-weight: bold;
text-decoration: none;
}

.nav_row a:active {
color: #000080;
font-weight: bold;
text-decoration: none;
}


.nav_row a:link {
color: #4A69AA;
font-weight: bold;
text-decoration: none;
}

.nav_row a:visited {
color: #4A69AA;
font-weight: bold;
text-decoration: none;
}

.nav_row a:hover {
color: #000080;
font-weight: bold;
text-decoration: underline;
}


hover should be the last!

lg jon rain
cyrano wrote:hi jon rain,

thank you for reply.

i digged this out and works, but this lacks also when using another RTs.

When i click on a aubpage i want to highlighten this when selected and loaded as it is for e.g. when using the breadcrumb RT.

I will check my css settings now first...
jon rain
Posts: 39
Joined: Wed 23. Nov 2005, 17:04
Location: wels, austria

Post by jon rain »

Hello,

Look at the first Task. it has been updated.
cyrano wrote:hi jon_rain,

nice RT- can the {NAV_ROW_LEVEL} Tag also be used with different CSS classes as the {NAV_TABEL_LEVELS}?

Or could be enhanced?

I want to get the page which is selected in another color.

Anyway - great long needed stuff you made.
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

wollte mir das grad mal 'antun' aber jetzt ist der Download-Link tot ?



:(
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
jon rain
Posts: 39
Joined: Wed 23. Nov 2005, 17:04
Location: wels, austria

Post by jon rain »

Last edited by jon rain on Fri 27. Jan 2006, 01:12, edited 1 time in total.
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Hi jon rain
Der Link funktioniert nicht. 24.01.06 22.48 Uhr (Ging schon vor vier Stunden nicht).
www(.)regenfelder.net ist nicht erreichbar.
regenfelder.net verlangt einen Benutzer und PW.

Gruß Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
noodleboy
Posts: 5
Joined: Tue 24. Jan 2006, 15:36

funzt nicht...

Post by noodleboy »

hey, wollte mir auch gerade diesen link runteralden, funzt nicht!!
jon rain
Posts: 39
Joined: Wed 23. Nov 2005, 17:04
Location: wels, austria

Re: funzt nicht...

Post by jon rain »

Hallo,


Meine Webseite wurde auf einen neuen Server verlegt. Es scheint, dass man von außen nicht mehr richtig hinkommt.

Bitte diesen Link verwenden

http://www.act2opt.at/downloads/NAV_TAB_ROW_LEVELS.zip
Post Reply