10 Aug
2002
10 Aug
'02
3:58 p.m.
Hi Marie, You _really_ should be using Python Scripts for this kind of thing. Still, good to see you're using ZPT :-) Anyway, here's the Python script that will do what you want: theDict = context.filescript(context.REQUEST) mytitle = theDict['title'] body = theDict['body'] myid = theDict['fid'] context.manage_addFolder(myid,mytitle) myfolder = context[myid] myfolder.manage_addProduct['PageTemplates'].manage_addPageTemplate('index_html',mytitle,body) return 'Done' cheers, Chris