help with {NAV_TABLE_SETLEVEL} and {NAV_LIST_SETLEVEL} tag

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
Post Reply
User avatar
baklavoni
Posts: 170
Joined: Mon 23. Oct 2006, 00:48
Location: Bosnia and Herzegovina

help with {NAV_TABLE_SETLEVEL} and {NAV_LIST_SETLEVEL} tag

Post by baklavoni »

TAG {NAV_LIST_SETLEVEL:back:0 :0 :1 :1:} gave me vertical menu like:

L1
L2
L3
L4

but i need horizontal menu like: L1 : L2 : L3 : L4

Is there something i need to do before implementing this TAG?
I followed instructions on this link: http://phpwcms.de/forum/viewtopic.php?t=8479

help[/url]
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Hi baklavoni,

have look, this is an easy css snippet for a horizontal output using {NAV_LIST_SETLEVEL:Home:1:0:0:0:nav_horiz1}:

Code: Select all

/* ============ CSS horizontale navi kh 220605*/
#nav_horiz1_ul {
	border: 0;
	margin: 0;
	padding: 0;
	list-style-type: none;
	text-align: center;
	font: bold 11px, verdana, lucida, sans-serif;
}

#nav_horiz1_ul li {
	display: block;
	float: left;
	text-align: center;
	padding: 0;
	margin: 0;
}

#nav_horiz1_ul li a {
	background: #FF5F28; 
	width: 137px;
	height: 20px;
	border-top: none;
	border-right: 1px solid #ffffff;
	border-bottom: none;
	border-left: none;
	padding: 0;
	margin: 0;
	color: #ffffff;
	text-decoration: none;
	display: block;
	text-align: center;
	font: bold 11px/20px "Verdana", "Verdana", verdana, lucida, sans-serif;
}

#nav_horiz1_ul li a:hover {color: #000000; background: #FF8E28; font-weight: bold; }
#nav_horiz1_ul li a#nav_horiz1_active,
#nav_horiz1_ul li a#nav_horiz1_last,
#nav_horiz1_ul li a#nav_horiz1_first,
#nav_horiz1 li a#nav_horiz1_active_link,
#nav_horiz1 li a#nav_horiz1_home_active_link,
#nav_horiz1 li.active a {
	background: #FFCC00;
	color: #000;
	font-weight: bold;
}

/* ============ END CSS horizontale navi */
Regards Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
baklavoni
Posts: 170
Joined: Mon 23. Oct 2006, 00:48
Location: Bosnia and Herzegovina

Thanx!!!

Post by baklavoni »

Again you prooved you are THE BEST!!!
This is exactly I was looking for.

Flip-Flop Thanx!
Post Reply