[Zope] Using py exp in dtml-var tag
Dieter Maurer
dieter@handshake.de
Wed, 31 Oct 2001 23:22:26 +0100
Michael Schulz - GIS Bearbeiter writes:
> i would like to pass the size attribute of a dtml-var tag as a python
> expression or document/folder-property.
> Sth like this: <dtml-var mytext size="property_of_folder">.
If you can live without the "...", then you can use
<dtml-var "mytext[:property_of_folder]">
If you need the "...", you must check, whether you will truncate,
and add the "..." in this case.
If you want to truncate at spaces, you will probably need a Python script
to do it...
Dieter