WG: [Zope] Using Images in Structured Text

Danny William Adair danny@adair.net
Wed, 19 Sep 2001 14:11:17 +1200


> > > I want to use the img-Style in DTML-Documents which I include in
> > > other Documents via the <dtml-var xyz fmt=structured-text> command.

Hi Steffen!

Instead of hacking into StructuredText.py, you may want to take a look at 
my external method http://www.zope.org/Members/Barabbas/stx_to_html  , it 
subclasses and overrides, which is much cleaner.
Of course you could copy that part into the original files if it is totally 
impossible for you to change you stx calls from

<dtml-var xyz fmt=structured-text>

to

<dtml-var "stx_to_html(xyz)">

hth,
Danny