Somehow with IE5.0 you don't get a good "here" object in PTs or "context" in scripts. I have not explored it further, because you can't downgrade IE without reinstalling Windows. I'm guessing it has something to do with case or path separators in the request sent by the browser. As a workaround, I have had pretty good luck in scripts using REQUEST.PARENTS[0] instead of context. I suppose that might work in a template -- try python:request.PARENTS[0] -- Wade On Wednesday 06 March 2002 07:33, Agata Cruickshank wrote:
Indeed, I was using Explorer 5.0, and I cannot reproduce the error in version 5.5.
I've managed to narrow down the error to the ptAdd.zpt and ptEdit.zpt in Products/PageTemplates/www directory. It appears that Explorer 5 objects to 'tal:replace="structure here/manage_page_header"' and '<h1 tal:replace="structure here/manage_page_footer">Footer</h1>'. I can replace it with <dtml-var manage_page_header> and <dtml-var manage_page_footer> and get the add page to work. Unfortunately, I don't know how to replace 'tal:define="body request/other/text | request/form/text | here/read"' in edit page (here/read raises an error) and anyway it is probably not a good idea to alter these files.
I'll just upgrade my browser and hope that everyone else working with Zope here will be willing to do the same. Many thanks for your help.
Agata -----Original Message----- From: Wade Leftwich [mailto:wade@lightlink.com] Sent: 05 March 2002 16:55 To: zope@zope.org; a.cruickshank@ccs.bbk.ac.uk Subject: Re: Page Templates problem
On Tuesday 05 March 2002 12:13, Agata wrote:
Message: 2 Date: Tue, 5 Mar 2002 10:57:41 -0000 From: Agata Cruickshank <a.cruickshank@ccs.bbk.ac.uk> Subject: RE: Page Templates problem
I'm using PageTemplates product version 1.4.1 with Zope 2.4.3. I get the error message immediately when selecting create new Page Template option from the drop down selection box, so I do not get an option of entering Id or title. However if I try to create a new Page Template in Netscape rather than Explorer it seems to work fine. If I try to edit this new Page Template in Explorer I get the error message again.
I'm not sure where "manage_page_header" can be found, but it appears that Explorer cannot find a path to it, while Netscape can.
Regards, Agata
Agata,
Are you using IE 5.0? It is horribly buggy and is known to have problems with the Zope Mgmt Interface. If you must use IE, try 5.5. But Opera is really very nice.
Wade Leftwich Ithaca, NY