[Zope] Structured Text

Andreas Jung Andreas Jung" <andreas@zope.com
Wed, 13 Mar 2002 11:04:34 -0500


----- Original Message -----
From: "Tom Deprez" <tom.deprez@uz.kuleuven.ac.be>
To: <zope@zope.org>
Sent: Wednesday, March 13, 2002 10:27
Subject: [Zope] Structured Text


> Hi,
>
> Does somebody has experience with modifying STX in such a way that it only
> effects some parts of the Zope Tree?

What do you mean with that ?

> ie. I'm looking for a way to make STX showing pictures (I managed that),
but
> I want to make it so that all pictures have the same width and height
> (independend on the real height/width of the picture) and a link when
> clicked on the image so that the full image can be shown....

Take a look at the HTML() function in StructuredText.py (CVS trunk).
This function uses HTMLWithImages() to render STX with images. You could
subclass HTMLWithImages and adjust the HTML generation to your needs.

- aj