[TYPO3] HMENU and TMENU help please
JoH
info at cybercraft.de
Fri Aug 18 15:59:23 CEST 2006
> These things are sent to test us.....
Well - if this would be a real test the correct answer would have been:
I can't do it like that, since the whole table stuff is just weird and
deprecated as well.
> Wondering if anybody could help with my little endeavour. I'm trying
> to put a table into 3 cells of a table for my menu. ie. first 3 menu
> items
>
> Basically I have 3 menu items and I want each to be placed exactly in
> my table on my template, so this is what I tried to do. But the
> problem is the allWrap closes the table before I want it to. How
> would I not do this?
>
This is the same thing with modern XHTML styleable with CSS:
temp.navi.1 = TMENU
temp.navi.1 {
wrap = <ul class="navi">|</ul>
NO {
wrapItemAndSub = <li>|</li>
linkWrap = <span class="bluearrow">|</span>
}
}
If you still prefer the table style:
temp.navi.1 = TMENU
temp.navi.1 {
wrap (
<table>
<tr>|</tr>
</table>
NO {
allWrap (
<td class="size128">
<table class="perc100">
<tr>|</tr>
</table>
</td>
)
beforeImg = images/blue-arrow.gif
beforeWrap =<td class="perc10">|</td>
linkWrap = <td class="perc90">|</td>
}
}
BTW:
If you try 10% of 128px you will get 12.8px which is not possible to
display.
Try usig fixed values for the cells since you are already using them for the
surrounding table.
This way you can get rid of one table:
temp.navi.1 = TMENU
temp.navi.1 {
wrap (
<table>
<tr>|</tr>
</table>
NO {
beforeImg = images/blue-arrow.gif
beforeWrap =<td class="width13">|</td>
linkWrap = <td class="width115">|</td>
}
}
Its up to you to create the corresponding CSS files now ;-)
Joey
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com
More information about the TYPO3-english
mailing list