[Zope] Zope

Robb Shecter shecter@darmstadt.gmd.de
Fri, 18 Feb 2000 19:33:38 +0100


Pedro Silva wrote:

> Hi,
>
> Is there anyone that could tell me how to work with the Tiny Tables.?

I don't know how to use them from a form, but I can give an example of "static"
use:

This web page's "see also" section on the right hand side is generated by a
tiny table:  http://www.rule-of-eight.com/components/oow

I have a table in the folder named SeeAlso.  The columns field is set to "url
link desc".  That is, three columns with those names.  In the data section, I
have lines with comma-seperated strings like:

"http://......", "link text goes here", "The description..."

Finally, there's a DTML script that loops over the lines in the table:

<dtml-in SeeAlso>
<a href="<dtml-var url>"><dtml-var link></a>
<br>
<dtml-var desc>
<br>&nbsp;<br>
</dtml-in>

------

If you want the data to be driven by a form, I guess you'd have to
programmatically edit the value of the "columns" attribute of the table.   I
wonder if that's safe...  Are attribute modifications atomic?  Not sure.

- Robb