Zum Inhalt springen

Aktiven Link in zweiter Ebene als aktiv anzeigen

Erstellt am 18. März 2005 · 2 Antworten · letzte Antwort am 23. März 2005

Tags: Frage

Winteretti ·

Tach

Warum bekomme ich es nicht hin, dass ein aktiver Link in meinem Menu auch als aktiv dargestellt wird? Ich raff es trotz (oder wegen) drei Tutorials auf meinem Tisch nicht.

Das steht im TS:

NAVIGATION = HMENU
NAVIGATION.1.special = directory
NAVIGATION.1.special.value = 1
NAVIGATION.1 = TMENU
NAVIGATION.1.expAll = 0
NAVIGATION.1.NO = 1
NAVIGATION.1.NO.allWrap = <br><div class="navi1"> |</div>

NAVIGATION.2 = TMENU
NAVIGATION.2.expAll = 1
NAVIGATION.2.NO = 1
NAVIGATION.2.NO.allWrap = <div class="navi2"> |</div>

NAVIGATION.2.ACT < NAVIGATION.2.NO 
NAVIGATION.2.ACT = 1 
NAVIGATION.2.ACT.ATagParams = class="navi1_active"

und das im CSS:

/*   #######   Links   #######   */

A:link {
COLOR: #008fc4; TEXT-DECORATION: none
}
A:visited {
COLOR: #008fc4; TEXT-DECORATION: none
}
A:active {
COLOR: #ff0000; TEXT-DECORATION: underline
}
A:hover {
COLOR: #ff0000; TEXT-DECORATION: underline
}


.navi1 a:link {
	color: #ffffff;
	text-decoration: none;
	font-weight: bold;
	width:100%;
	background-color:#008FC4;
	padding: 5px 5px 5px 5px
}
.navi1 a:visited {
	color: #ffffff;
	text-decoration: none;
    font-weight: bold;
    width:100%;
	background-color:#008FC4;
	padding: 5px 5px 5px 5px;
}
.navi1 a:hover {
	color: #ff0000;
	text-decoration: underline;
    font-weight: bold;
    width:100%;
	background-color:#008FC4;
	padding: 5px 5px 5px 5px;
}

####Textphase ####

.textactive a:link, testactive a:visited { color: #fff; }

.navi1_active a:link {
	color: #ff0000;
	text-decoration: underline;
	width:100%;
	background-color:#000000;
	padding: 5px 5px 5px 5px;
}

.navi1_active a:visited {
	color: #ff0000;
	text-decoration: underline;
	width:100%;
	background-color:#000000;
	padding: 5px 5px 5px 5px;
}

.navi1_active a:active {
	color: #ff0000;
	text-decoration: underline;
	width:100%;
	background-color:#000000;
	padding: 5px 5px 5px 5px;
}

.navi1_active a:hover {
	color: #ff0000;
	text-decoration: underline;
	width:100%;
	background-color:#000000;
	padding: 5px 5px 5px 5px;
}

Aus irgendeinem Grund ignoriert er die Anweisungen in .navi1:active und setzt den aktiven Link nur blank.

Zu sehen unter http://p8998.typo3server.info/

Würde mich sehr freuen, wenn ich den Montag mit einem Erfolgserlebnis beginnen dürfte.

Bis dann ein schönes Wochenende

M;ke

Winteretti ·

Ist eigentlich ganz einfach, wenn man statt

NAVIGATION.2.ACT < NAVIGATION.2.NO 
NAVIGATION.2.ACT = 1 
NAVIGATION.2.ACT.ATagParams = class="navi1_active"

einfach

NAVIGATION.2.ACT = 1 
NAVIGATION.2.ACT.allWrap = <div class="navi1_active"> | </div>

schreibt.

Mensch, dass ihr das nicht gewusst habt. Das enttäuscht mich jetzt aber wirklich irgendwie. Vielleicht sollte ich mal ein Buch schreiben um mein profundes Wissen weiterzugeben...

Frohe Ostern allerseits

M;ke

theo ·
Winteretti schrieb

Vielleicht sollte ich mal ein Buch schreiben um mein profundes Wissen weiterzugeben...

yo, dann mach mal...