From: Steve H. <nor...@ve...> - 2005-01-26 22:47:55
|
I'm modifying Lupa's version of a classified ad product. I have added several Archetype fields. In earlier iterations of the code, they displayed well, with no problems. However, I took a published suggestion and made one of the Archetype fields a Reference fields and things stopped working -- even when I took out the reference field. The relevant code snippets are as follows. These work: <span tal:content="python: here.getStreetaddress()"/> <span tal:content="python: here.getCity()"/> <span tal:content="python: here.getState()"/> <span tal:content="python: here.getZipcode()"/> But these don't: <span tal:content="python: structure here.getPhoto()"/> <span tal:content="python: here.getBody()"/> They're defined as follows? ImageField('photo', widget=ImageWidget(description=""" """, label="Upload a picture of your item."), ), TextField('body', searchable=1, primary=1, default_output_type='text/plain', allowable_content_types=('text/plain'), widget=RichWidget(description=""" """, rows=10, label="Write your Classified Ad here"), ), Any suggestions will be appreciated. |