[Zope] getProperty title and id

Tino Wildenhain tino at wildenhain.de
Wed Oct 15 07:41:45 EDT 2008


Hamzat Kamal wrote:
> Hi,
> 
> I just want to why <dtml-var "xx.getProperty('title')"> will display the 
> object title and and <dtml-var "xx.getProperty('id')"> will dispaly none.

apart from the fact that you probably should start using TAL instead of 
DTML,

> <dtml-let xx=" _.getitem('id')">
> <dtml-var "xx.getProperty('title')">
> <dtml-var "xx.getProperty('id')">
> </dtml-let>

Did you look at the resulting output? Not the HTML rendered
in the browser but the source - "view source" in the browser.

Regards
Tino
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3241 bytes
Desc: S/MIME Cryptographic Signature
Url : http://mail.zope.org/pipermail/zope/attachments/20081015/b8fd337b/attachment.bin 


More information about the Zope mailing list