[Zope-CMF] Emulating <dtml-var... In a CMF document

Carlson, Christopher W. Christopher.W.Carlson@saint-gobain.com
Mon, 11 Mar 2002 17:25:30 -0500


I'm trying to migrate a web site from a DTML-based, home-grown mess to CMF
(using the Plone skin, specifically), and am stumped.

I have a Python script which randomly selects a picture from a collection of
photo albums, and I use it on my old site by invoking: <dtml-var
expr="randompic()">

I haven't found a convenient way to do the same thing from within a CMF
document, using either the HTML or STX setting.  Can it be done?

--- Chris