Author Topic

Lazaro Ferreira

Tuesday 19 October 2004 2:07:23 pm

Comment41702

Paul,

I will try to explain it further

We have an extension module, which basically implements a custom search then save the search critheria to re-use it later

Saving the search critheria means creating an object of Search Critheria class

We know we can do it, using the ezp standard feature to create new objects.

It means calling

content/action

( the view action of the content module ), from a http form that includes : submit button "NewButton", and input hidden fields for ClassID and NodeId data. As explained above this way we are forced to put a form with a visible button in a page to do the job.

What we want is to create our search critheria new object, calling some ezp api or feature that do the trick without using an HTML form

On the other hand, we know that we can put some ezp

content/action

code within our module to do it, but it would mean code that should be far more expensive to maintain in the future because it will include EZP kernel code directly

Well, I hope you have understood our drama, it could be short to a simple question

Is there a simple ezp api to do it properly ? (if it exists we didn't realize it from reading content/action code)

 

Lazaro
http://www.mzbusiness.com