Hi,
"Williamson, Aaron" wrote:
Peter,
Try this bit of mojo here:
dtml-let monthnr="_.DateTime().mm()"
# actually, it schould be:
dtml-let monthPoll="'month_%02d' % monthnr"
# to produce 'month_01' to 'month_12'
dtml-var monthPoll
/dtml-let
/dtml-let
Regards
Tino
Dear All.
What I want to do is display this months Poll.
I have created three Polls ( from the Poll Product ), named month_06, month_07,
month_08.
I understand that I will have to use the getitem() function to "show" the Poll itself,
but I don't know how to create the string "month_0X"
Peter,
Try this bit of mojo here:
dtml-let monthnr="_.DateTime().mm()"
dtml-let monthPoll="'month_'+monthnr"
dtml-var monthPoll
/dtml-let
/dtml-let
--Aaron
___
Zope maillist - [EMAIL PROTECTED]