[Typo3] a question about the menu.

zsl vincent zsl339 at hotmail.com
Tue Oct 25 08:43:24 CEST 2005


Hallo
     the following codes are the HTML codes for the menu in my template.
-----------------------------------------------------------------------------------


      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>          <td width="10">&nbsp;</td>
          <td width="5">&nbsp;</td>
          <td width="109" class="unseltoc" height="20" 
onClick="javascript:show
                   ('Layer1');"><a href="#" 
class="unseltoc">I.S.Leaders</a></td>
          <td width="14" align="right" onClick="javascript:show('Layer1');">
            <a href="#"><img src="images/button_arrow.gif" width="14" 
height="14"              border="0"  alt="arrow button" title="arrow 
button"></a></td>
          <td width="5">&nbsp;</td>
        </tr>
        <tr>          <td colspan="5"><img 
src="images/TOC_separator.gif" width="143" height="1" alt="" 
  title=""></td>
        </tr>
      </table>
------------------------------------------------------------------------------------------


and i have wrote some typoscript in the template record for the Menu:
------------------------------------------------------------------------------------------

     lib.menu_1 = HMENU
lib.menu_1.1 = TMENU
lib.menu_1.1 {
     NO.allWrap = (

                       <tr>                        <td 
width="10">&nbsp;</td>
                        <td width="5">&nbsp;</td>
                        <td width="109" class="unseltoc" height="20" 
                          onClick="javascript:show('Layer1');">
                               |                            </td>
                        <td width="14" align="right" 
onClick="javascript:show('Layer1');"><a href="#"><img 
src="images/button_arrow.gif" width="14" height="14" border="0"  alt="arrow
button" title="arrow button"></a></td>
                        <td width="5">&nbsp;</td>
                      </tr>
                      <tr>                         <td colspan="5"><img 
src="images/TOC_separator.gif" width="143" height="1" alt="" title=""></td>
                      </tr>

)
  NO.stdWrap.htmlSpecialChars = 1
}

# Default PAGE object:
page = PAGE
page.typeNum = 0
page.10 = USER
page.10.userFunc = tx_templavoila_pi1->main_page
--------------------------------------------------------------------------------------------


And according to this typoscript i can not get the right format of the 
template.The point is there is a text link and a picture link for each menu
item . so is there anyone who can help me to correct the typoscript code?

Thanks
shilong



More information about the TYPO3-english mailing list