Using DTML to update ZCatalog
Hello, I was trying to update a ZCatalog within a DTML Method by using DTML. I could not figure it out how to do it. I have the following structure: MyFolder | |--MyDTML_Method | |--MyZCatalog Within the DTML Method "MyDTML_Method" I would like to use some DTML Code to update the "MyZCatalog" so I do not need to go in the "Advanced" View of "MyZCatalog" and click the [Update] button. Any idea what DTML Code can do this ? I tried <dtml-call catalogReindex('MyZCatalog')> , but that does not work. thanks in advance Nico ---------------------------------------------------------------- nico grubert (education & publishing) nico@beehive.de beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299
I tried <dtml-call catalogReindex('MyZCatalog')> , but that does not work.
This does not work. DC wrote methods for the management interface only. :-( The only thing you can do is: <dtml-call "MyZCatalog.manage_catalogReindex(REQUEST, RESPONSE, URL1)"> But then you will be redirected to the management screen of the catalog, so you will have to add another <dtml-call"RESPONSE.redirect('NewURL')"> to override that. So the complete code would be: <dtml-call "MyZCatalog.manage_catalogReindex(REQUEST, RESPONSE, URL1)"> <dtml-call"RESPONSE.redirect('NewURL')"> (Not really what people would call comprehensible DTML code ...) Cheers Joachim
participants (2)
-
Joachim Werner -
Nico Grubert