[TYPO3-german] TMENU und die aktuelle Position in der 1 Ebene

robert moszczynski slackfan at op.pl
Tue May 16 10:49:07 CEST 2006


> Kannst du vielleicht dein menu mal komplett posten, bin da an was ähnlichem 
> am basteln.

Sure:

subparts.MENU = HMENU
    subparts.MENU.stdWrap.wrap = <TABLE width="200" border="0" 
cellspacing="0" cellpadding="0" bgcolor="#D4D7E0"><TR><TD><TABLE 
border="0" width="100%" cellspacing="1" 
cellpadding="1">|</TABLE></TD></TR></TABLE>
    subparts.MENU.entryLevel = 0

    subparts.MENU.1 = TMENU
    subparts.MENU.1.target = _top
    subparts.MENU.1.NO {
       allWrap = <TR><TD bgcolor="#D4D7E0" align="center" 
valign="middle" width="5"><IMG src="media/bullets/blackdot.gif" 
width="5" height="9"></TD><TD bgcolor="#D4D7E0" width="200"> | </TD></TR>
       ATagBeforeWrap = 1
       stdWrap.case = upper
       ATagParams = class="link_h"
    }
    subparts.MENU.1.ACT < subparts.MENU.1.NO
    subparts.MENU.1.ACT = 1
    subparts.MENU.1.ACT {
       stdWrap.case = upper
       ATagParams = class="link_h" 
style="background-color:#002865;color:white;padding-left:22px;"
       allWrap = <TR><TD bgcolor="#D4D7E0" align="center" 
valign="middle" width="5"><IMG src="media/bullets/blackdot.gif" 
width="5" height="9"></TD><TD bgcolor="#D4D7E0" width="200"> | </TD></TR>
    }

subparts.MENU.2 = TMENU
    subparts.MENU.2.target = _top
    subparts.MENU.2.NO {
       allWrap = <TR><TD colspan="2">|</TD></TR>
       ATagBeforeWrap = 1
       stdWrap.case = upper
       ATagParams = class="link_ha"
    }
    subparts.MENU.2.ACT < subparts.MENU.2.NO
    subparts.MENU.2.ACT = 1
    subparts.MENU.2.ACT {
       allWrap = <TR><TD colspan="2">|</TD></TR>
       stdWrap.case = upper
       ATagParams = class="link_ha" 
style="background-color:#002865;color:white;margin-left:9px;padding-left:20px;" 

}


Dazu das CSS:

.link_h {
	text-align:left;
	/*margin-right:9px;*/	
	/*margin-top:5px;*/
	padding-top:2px;
	padding-bottom:2px;
	padding-left:1px;
	font-family:Arial, Helvetica, sans-serif;
	font-size:11px;
	color:#002865;
}
a.link_h:hover {
	text-decoration: none;
	line-height: 13px;
	background-color:#002865;
	color:white;
	display:block;
}

und für link_ha das gleiche.

Gruß



More information about the TYPO3-german mailing list