[Zope] Structured text - inline images

Barry Pederson barryp@medicine.nodak.edu
Tue, 24 Sep 2002 12:53:39 -0500


Chris Beaven wrote:
> I'm trying to get inline images in structured text working and can't seem to
> figure it out...
> 
> Quoted from
> http://www.zope.org/Members/jim/StructuredTextWiki/StructuredTextNGRules :
> 
> Text encloded by double quotes followed by a colon, the string img, another
> colon, an URL, and concluded by punctuation plus white space, or just white
> space, is treated as an inline image.
> For example, "Zope icon":img:http://www.zope.org/p_/zopelogo_jpg is
> interpreted as  (in HTML, <img alt="Zope icon"
> src="http://www.zope.org/p_/zopelogo_jpg">)
> 
> 
> But when I try it, all I get is a link to
> "img:http://www.zope.org/p_/zopelogo_jpg" titled "Zope icon". So obviously
> this rule doesn't seem to be working. Am I missing something obvious? Is
> there some other way I can get this working?

You didn't say which version of Zope you're using.  I believe the images 
feature was enabled by default after 2.5.1.  If you're using 2.5.1 or lower, 
you'll probably have to muck around with your lib/python/StructuredText 
modules, either altering them to use HTMLWithImages, or get a newer version 
of that directory from CVS.

	Barry