Forum OpenACS Q&A: Re: -query swith in ad_page_contract

Collapse
Posted by Jim Lynch on
Heya Michael,

the -query { block } parameter is an alias for the unnamed second parameter of ad_page_contract

So you -could- do...

ad_page_contract {
docs
} -properties {
foo : onevalue
:
} -query {
{foo "default for foo"}
}

I.e., you can specify the switch parts in any order you want as long as the documentation block (which is unnamed) is first.

-Jim