[TYPO3] count_menuItems
tapio
tapio.markula at dnainternet.net
Wed Feb 15 19:01:52 CET 2006
Peter Klein wrote:
> Hi tapio, using count_menuItems for that is way too complicated, specially
> when there's a function like optionSplit..
>
> Here's a couple examples I use on some of my menus..
>
> # Render menu in rows of 3 items
> allWrap = |*| | || | || |<br> |*| |
>
> # Render menu in rows of 4 items
> allWrap = |*| | || | || | || |<br> |*| |
>
> A good article describing optionSplit can be found here:
> http://castironcoding.com/resources/typo3-tricks/single-typo3-tricks/index.html?tx_ttnews%5Btt_news%5D=5&tx_ttnews%5BbackPid%5D=45&cHash=8bfd546c52
I have used just 'first_part|*|middle_part|*|last_part' system
but there seems to more possibilities.
I didn't fully understood English explantions in that page.
But
wrap = <table border="0" width="99%" cellspacing="0" cellpadding="2"
class="3_level_menu"><tr>|</tr></table>
NO = 1
NO.linkWrap = |*| <td valign="top" style="border:1px solid
red">|</td> || <td valign="top"style="border:1px solid blue">|</td> ||
<td valign="top"style="border:1px solid olive">|</td></tr><tr> |*| <td
valign="top"style="border:1px solid green">|</td>
This seems to generate the correct result (I put borders just for test
purposes). This issue has been handled ealier but this was first smart
answer.
thank's
Because I didn't understood that possibility I I tried to find an
alternative solution.
More information about the TYPO3-english
mailing list