Hello, Well, I've got a very specific question, I'd like to use a dtml-tree inside a table for using it like a menu. The problem is when I expand the tree created whatever is on top of the page disappears and the table gets on top of the screen (I have to scroll to see the top of the page). I'd like to know if anyone knows how to make it work as expected. Thanks Probably this dtml code can help you figure aou what I mean, just copy and paste it to see what happens: <html> <body bgcolor="#00A000" rightmargin="0" leftmargin="0" bottommargin="0" topmargin="0" marginwidth="0" marginheight="0"> <h1>TESTE</h1> <table border="0" width="100%" height="100%" align="left" bgcolor="#FFFFFF" cellspacing="0" cellpadding="10"> <tr> <td width="20%" bgcolor="#00A000" valign="top"> <dtml-tree some_folder> <a href='<dtml-var id>'><dtml-var title_or_id></a> </dtml-tree> </td> <td width="100%"> aaa </td> </tr> </table> </body> </html>
Leonardo Fernandes wrote at 2003-2-14 13:17 -0200:
Well, I've got a very specific question, I'd like to use a dtml-tree inside a table for using it like a menu. The problem is when I expand the tree created whatever is on top of the page disappears and the table gets on top of the screen (I have to scroll to see the top of the page). I'd like to know if anyone knows how to make it work as expected.
This usually means some problem with the HTML table structure... I do not have time to look more closely at your problem. But, I would suggest to use the tree building support in "ZTUtils". It gives your *much* finer control over the tree layout than "dtml-tree". The ZPT examples contain some nice examples about tree display with the "ZTUtils" package. Dieter
participants (2)
-
Dieter Maurer -
Leonardo Fernandes