[Zope] Getting a few characters

Geir B Hansen Geir B Hansen <geirh@funcom.com>
Mon, 20 Dec 1999 19:31:03 +0100


on 20. desember 1999 Tom Deprez wrote :
TD> Hi,

TD> Does anyone knows how to get eg. the 50 first characters of a text property?

TD> ie. I've a ZClass which contains a text property. I'm now making a html page
TD> which shows several classes in a certain folder. Per instance I want to give
TD> the first characters of its text property.

TD> Thanks in advance,

TD> Tom.

<dtml-var textpropertyname size=50> ought to cut it..

--
Geir B Hansen
web-developer/designer
geirh@funcom.com
http://www.funcom.com