[Typo3] TMENU wrapProblem

Rob De Vries spam_this at pandora.be
Wed Jul 20 17:59:47 CEST 2005


 >Hope someone did that / something similar before as I am running out 
of variations to test....

I just did today :)

temp.prodnav = HMENU
temp.prodnav.special = directory
temp.prodnav.special.value = 3
temp.prodnav.wrap = <ul id="prodnavlist">|</ul>
temp.prodnav.1 = TMENU
temp.prodnav.1.wrap = |
temp.prodnav.1.NO {
beforeWrap = <li class="pr1">|Cem<span class="prodnavblack"> ||<li 
class="pr2">|Cem<span class="prodnavblack"> ||<li class="pr3">|Cem<span 
class="prodnavblack">
linkWrap = |
doNotShowLink = 1
before.cObject = TEXT
before.cObject.field = uid
before.cObject.dataWrap = <a href="index.php?id= |" 
accesskey="{field:alias}" 
title="{field:title}:{field:title}-Accesskey:{field:alias}">
after.cObject = TEXT
after.cObject.field = subtitle
after.cObject.wrap = | </a>
wrapItemAndSub = | </li>
}

gives this result:
<ul id="prodnavlist">
<li class="pr1"><a href="index.php?id=11" accesskey="" 
title="Cemdure:dure-Accesskey:">Cem<span class="prodnavblack">dure</a></li>
<li class="pr2"><a href="index.php?id=10" accesskey="" 
title="Cemfort:fort-Accesskey:">Cem<span class="prodnavblack">fort</a></li>
<li class="pr3"><a href="index.php?id=9" accesskey="" 
title="Cemtop:top-Accesskey:">Cem<span class="prodnavblack">top</a></li>
</ul>


still need to clean it up a but (i don't need the accesskey="" for ex. )
I needed this kind of menu because my client has this logo i needed to 
emulate in a menu, all his products starts with "cem" but the names are 
diferent, CEMthis, CEMthat.
So i use the subtitles to name the pages this and that and add the CEM 
in the menu itself.
Only the CEM has a colour, the THIS and THAT names are always black; (on 
hover state)
Hehe, yep I confess,  i'm a bit proud of my sollution :)

Well   I hope it is of any help

grtz
Rob





More information about the TYPO3-english mailing list