How Do I manage_AddProduct for ZPT?
I'm trying either of these expressions: <p tal:replace="structure python:here.manage_addProduct['PageTemplates'].manage_addPageTemplate(id, title='testing', text=None, REQUEST=None)" /> --or-- <p tal:replace="structure python:path(manage_addProduct['PageTemplates'].manage_addPageTemplate(id, title='testing', text=None, REQUEST=None))" /> but the error says *manage_addProduct is not defined*. What am I missing? TIA, beno
beno wrote:
I'm trying either of these expressions:
<p tal:replace="structure python:here.manage_addProduct['PageTemplates'].manage_addPageTemplate(id, title='testing', text=None, REQUEST=None)" />
but the error says *manage_addProduct is not defined*. What am I missing?
This one works for me... How do you call your ZPT? Via your browser? If not this could some kind of namespace-issue... -mj
At 08:42 PM 1/5/2003 +0100, you wrote:
beno wrote:
I'm trying either of these expressions: <p tal:replace="structure python:here.manage_addProduct['PageTemplates'].manage_addPageTemplate(id, title='testing', text=None, REQUEST=None)" />
but the error says *manage_addProduct is not defined*. What am I missing?
This one works for me... How do you call your ZPT? Via your browser? If not this could some kind of namespace-issue...
I beg your pardon: my bad. It was in the permissions. Thanks! beno
participants (2)
-
beno -
Maik Jablonski