[TYPO3] Add an icon to a TMENU

ben van 't ende [netcreators] ben at netcreators.nl
Sun Mar 19 00:17:08 CET 2006


Joerg Wagner - DigiLog multimedia wrote:
> What about "stdWrap2" ? It is wrapped around the stdWrap (anchor tag already
> included).

Hi,

Why don't you include it with css? No need for all this wrap stuff. Like:

CSS
#navcontainer ul a,
#navcontainer ul a:link,
#navcontainer ul a:visited {
	color: #292929;
	padding-left: 22px;
	display: block;
	padding-bottom: 4px;
}

#navcontainer ul a:hover,
#navcontainer ul a:focus {
	color: #CA0403;
	background: url(/fileadmin/tmpl/img/b.gif) no-repeat left;
}

/*current Link*/
#navcontainer li.active a,
#navcontainer li.active a:link,
#navcontainer li.active a:visited {
	font-weight: bold;
	color: #CA0403;
	background: url(/fileadmin/tmpl/img/bc.gif) no-repeat left;
}

with this typoscript

#Menu====================================

navcontainer = COA
navcontainer {
	10 = HMENU
	10.1 = TMENU
	10.1 {
		noBlur = 1
		CUR = 1
		ACTIFSUB = 1
		}

	10.1.NO {
		wrapItemAndSub = <li>|</li>
		ATagTitle.field = abstract // description
		}

	10.1.CUR {
		linkWrap = |
		wrapItemAndSub = <li class="active">|</li>
		ATagTitle.field = abstract // description
		}

	10.1.ACT < 10.1.CUR

	10.1.ACTIFSUB < 10.1.NO
	10.1.ACTIFSUB {
		wrapItemAndSub = <li class="active">|</li>
		}
	}

gRTz

ben

> Jörg Wagner
> DigiLog multimedia
> 
> 
> "Francesco di Francia" <darksky77 at email.it> schrieb im Newsbeitrag 
> news:mailman.1.1142699940.32452.typo3-english at lists.netfielders.de...
>> After 4 hours of diving deep unliked documentation i discovered the 
>> existence of the afterImg properties -_-
>>
>> Solution is :
>>
>> ### MENU+ABSTRACT MODIFICATION ###
>>
>> tt_content.menu.20.4.1.NO {
>> allWrap = <dt>|</dd>
>> afterImg.import = uploads/media/
>> afterImg.import.field = media
>> afterImg.import.listNum = 0
>> afterImgTagParams =
>> after.wrap = </dt><dd>|
>> ATagTitle.field = description // title
>>
>>
>> }
>> ###############################
>>
>> Here's the result:
>>
>> http://www.netspiders.net/index.php?id=7
>>
>> The problem now is to avoid the rendering of the border attribute...it 
>> make the page xhtml 1.0 strict invalid
>>
>>
>> -- 
>> Net Wargaming Italia - La risorsa italiana per gli appassionati di wargame 
>> e strategici a turni
>> http://www.netwargamingitalia.net
>>
>> info at netwargamingitalia.net
>> darksky at netwargamingitalia.net 
> 
> 


-- 
netcreators::creation and innovation
www.netcreators.com -  www.typo3.nl





More information about the TYPO3-english mailing list