[Zope] dtml-tree: method for header attribute?

Tobias Herp therp at apriori.de
Fri Sep 12 23:30:03 EDT 2003


Hi,

I have a dtml-tree tag with nowrap switched off (intentionally), and I'd 
like the wrapped lines to align below the text, rather than below the 
usual meta_type icon.  This is how it looks like:

   <dtml-tree
     ><img src="&dtml-BASEPATH1;/&dtml-icon;"
           height="16" width="16"
           alt="&dtml-meta_type;">
     <a href="&dtml-absolute_url;/manage_keyView"
        target="details">(visible link text)</a>
     (further info)
   </dtml-tree>

When I put a '</td><td>' between the image and the link, it looks nice 
-- until the first branch is expanded (the colspan attribute is applied 
to the cell containing the image).  I tried several CSS styles instead, 
but without success.

Now I had a closer look at the header attribute of the tree tag; but I 
couldn't figure out how this is used, i.e. how the method must look 
like.  Can please someone give me a hint?

Tia,

Tobias

P.S. By the way: wouldn't it be great if the tree tag would be able to 
do the icon thing itself? ;-)





More information about the Zope mailing list