Tim Cook writes:
I'm sure someone will correct me if I'm wrong. But I believe you
want:
dtml-with "_.getitem(attribute3)"
Haven't tried it in my code yet, but thanks to your post I found the
section about _.getitem(). That'll come in handy all over the place,
so many thanks for the
Geoffrey L. Wright writes:
I think I am finally getting a decent handle on namespace issues in
Zope, and I can now with the dtml-with tag with reasonable efficacy in
simple situations. But I have run into something of a brick wall on
one issue.
What I would like to be able to do is
Chris Withers writes:
"Geoffrey L. Wright" wrote:
Where objectName2 is actually an attribute of objectName1.
dtml-with objectName1
dtml-var attribute1
dtml-var attribute2
dtml-var attribute3
dtml-with objectName2
"\"Geoffrey L. Wright\"
Don't I have to do something in my syntax to indicate that I'm looking
for the the value of attribute3 rather than an object with the literal
id "attribute3"?
I'm sure someone will correct me if I'm wrong. But I believe you
want:
dtml-with "_.getitem(attribute3)"
On 27 Sep 2000, 12:46 Lars Heber wrote:
I forgot something:
By the way: Is it possible to insert special characters in
properties,
like auml;?
I meant, that properties with special characters in it are not
displayed correctly, when called with the shortened syntax
dtml-VARNAME;.
Would this do it? :
dtml-let item=0
dtml-in wherever
dtml-let level="level+1"
/dtml-in
/dtml-let
Cheers,
Manuel
On Sat, 29 Jul 2000, Tim Cook wrote:
Kyle Burnett wrote:
so i have this loop and i want to count a variable:
dtml-in wherever
dtml-if
so i have this loop and i want to count a variable:
dtml-in wherever
dtml-if sequence-start
dtml-var count-id
/dtml-if
/dtml-in
but what i really want to count is specific values for id. so let's say
id=='value1', i want to try and do the following:
dtml-in wherever
dtml-if
Kyle Burnett wrote:
so i have this loop and i want to count a variable:
dtml-in wherever
dtml-if sequence-start
dtml-var count-id
/dtml-if
/dtml-in
but what i really want to count is specific values for id. so let's say
id=='value1', i want to try and do the following: