Forum OpenACS Development: Re: ad_form for new and edit requests

Collapse
Posted by Don Baccus on
set form_mode [ad_decode [ad_form_new_p -key id] 1 "edit" "display"]
See, now I can't even understand the code being written and I wrote ad_form_new_p and ad_form! You seem to be saying set the form to edit mode if it is a new request, display otherwise but apparently it acts as a view script if ad_form_new_p returns false?

I must be missing something.

And, yes, the template mapping to content type code works, you can even map your (ugh) ad_form-driven display template to it if you want ...

Is it easy to use at the moment? No. I'm getting more and more motivated with each post in this thread to help Jun and Daveb make this stuff easy to use in the next couple of months, though ...