Forum OpenACS Development: Response to rp_serve_abstract_file and PerformanceModeP

Collapse
Posted by Lars Pind on
I've added rp_getform, which is a simple wrapper around ns_getform, only it'll create the form if it doesn't already extist.

Then I've added rp_form_put, which will add an entry to the form.

This is useful if you want to create a shortcut to another page using an index.vuh file. For example what I just added for api-doc:

/packages/acs-api-browser/www/proc/index.vuh:

rp_form_put query_string [string range [ad_conn extra_url] [string length "proc/"] end]
rp_form_put search_type "Feeling Lucky"
rp_internal_redirect "/packages/[ad_conn package_key]/www/proc-search"

This lets you simply type

foo.com/api-doc/proc/rp_form_put

into your browser, and you'll get the documentation for this proc.

/Lars